[54/81] permit to add things to CFLAGS per target
diff mbox

Message ID 2d27e24836034318659e0b9520eebd6ff4fc6cc2.1249301360.git.quintela@redhat.com
State Superseded
Headers show

Commit Message

Juan Quintela Aug. 3, 2009, 12:46 p.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 configure |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Patch
diff mbox

diff --git a/configure b/configure
index 4ba42b3..9387840 100755
--- a/configure
+++ b/configure
@@ -2066,8 +2066,9 @@  if test "$target_bsd_user" = "yes" ; then
   echo "CONFIG_BSD_USER=y" >> $config_mak
 fi

-# generate LDFLAGS for targets
+# generate QEMU_CFLAGS/LDFLAGS for targets

+cflags=""
 ldflags=""
 linker_script="-Wl,-T../config-host.ld -Wl,-T,\$(SRC_PATH)/\$(ARCH).ld"
 if test "$target_linux_user" = "yes" -o "$target_linux_user" = "yes" ; then
@@ -2103,6 +2104,7 @@  if test "$target_softmmu" = "yes" ; then
 fi

 echo "LDFLAGS+=$ldflags" >> $config_mak
+echo "QEMU_CFLAGS+=$cflags" >> $config_mak

 echo "/* Automatically generated by configure - do not modify */" > $config_h
 echo "#include \"../config-host.h\"" >> $config_h