[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 52/81] permit to add things to LDFLAGS for target
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 52/81] permit to add things to LDFLAGS for target |
Date: |
Mon, 3 Aug 2009 14:46:43 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
---
configure | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/configure b/configure
index 8cfd4ad..f38eff6 100755
--- a/configure
+++ b/configure
@@ -2073,37 +2073,35 @@ if test "$target_linux_user" = "yes" -o
"$target_linux_user" = "yes" ; then
case "$ARCH" in
i386)
if test "$gprof" = "yes" -o "$static" = "yes" ; then
- ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld'
+ ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld $ldflags'
else
# WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object
# that the kernel ELF loader considers as an executable. I think this
# is the simplest way to make it self virtualizable!
- ldflags='-Wl,-shared'
+ ldflags='-Wl,-shared $ldflags'
fi
;;
sparc)
# -static is used to avoid g1/g3 usage by the dynamic linker
- ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld -static'
+ ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld -static
$ldflags'
;;
ia64)
- ldflags='-Wl,-G0 -Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld
-static'
+ ldflags='-Wl,-G0 -Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld
-static $ldflags'
;;
x86_64|ppc|ppc64|s390|sparc64|alpha|arm|m68k|mips|mips64)
- ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld'
+ ldflags='-Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld $ldflags'
;;
esac
fi
if test "$target_softmmu" = "yes" ; then
case "$ARCH" in
ia64)
- ldflags='-Wl,-G0 -Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld
-static'
+ ldflags='-Wl,-G0 -Wl,-T../config-host.ld -Wl,-T,$(SRC_PATH)/$(ARCH).ld
-static $ldflags'
;;
esac
fi
-if test "$ldflags" != "" ; then
- echo "LDFLAGS+=$ldflags" >> $config_mak
-fi
+echo "LDFLAGS+=$ldflags" >> $config_mak
echo "/* Automatically generated by configure - do not modify */" > $config_h
echo "#include \"../config-host.h\"" >> $config_h
--
1.6.2.5
- [Qemu-devel] [PATCH 42/81] Fold CURSES_LIBS into libsoftmmu_libs, (continued)
- [Qemu-devel] [PATCH 42/81] Fold CURSES_LIBS into libsoftmmu_libs, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 43/81] Fold VNC_TLS_LIBS into libs_softmmu, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 44/81] Fold VNC_SASL_LIBS into libs_softmmu, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 45/81] Fold XEN_LIBS into libs_softmmu, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 46/81] Fold BLUEZ_LIBS into libs_softmmu, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 47/81] Fold FDT_LIBS into libs_softmmu, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 48/81] Fold BRLAPI_LIBS into libs_softmmu, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 49/81] remove duplicated TARGET_GPROF code, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 50/81] \!CONFIG_USER_ONLY == CONFIG_SOFTMMU, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 51/81] Introduce CONFIG_NOSOFTFLOAT and simplify Makefile.target, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 52/81] permit to add things to LDFLAGS for target,
Juan Quintela <=
- [Qemu-devel] [PATCH 53/81] refactor linker_script common part and change quoting, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 54/81] permit to add things to CFLAGS per target, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 55/81] fix typo, there should be bsd_user there, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 56/81] Move alpha CFLAGS target to configure, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 57/81] Move ia64 QEMU_CFLAGS target to configure, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 58/81] this bit was already generated in configure, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 59/81] Fold TARGET_GPROF handling in configure, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 60/81] Generate more conmmon CFLAGS, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 61/81] Added CONFIG_NEED_MMU for microblaze and cris, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 62/81] Move dis-* selection to configure, Juan Quintela, 2009/08/03