From: Loïc Minier Date: Sun, 31 Jan 2010 11:23:45 +0000 (+0100) Subject: Add -static earlier to LDFLAGS for compile_prog() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=79427693174a553d62f3da44aacd3f19ba8df3a7;p=qemu.git Add -static earlier to LDFLAGS for compile_prog() Add -static to LDFLAGS earlier as to run the compile_prog() tests with this flags, this will avoid turning on features for which a shared library is available but not a static one. Signed-off-by: Loïc Minier Signed-off-by: Aurelien Jarno --- diff --git a/configure b/configure index b8c1ad54b0..dad3bb5e23 100755 --- a/configure +++ b/configure @@ -488,7 +488,9 @@ for opt do ;; --enable-gprof) gprof="yes" ;; - --static) static="yes" + --static) + static="yes" + LDFLAGS="-static $LDFLAGS" ;; --sysconfdir) sysconfdir="$optarg" ;; @@ -2025,7 +2027,6 @@ if test "$solaris" = "yes" ; then fi if test "$static" = "yes" ; then echo "CONFIG_STATIC=y" >> $config_host_mak - LDFLAGS="-static $LDFLAGS" fi if test $profiler = "yes" ; then echo "CONFIG_PROFILER=y" >> $config_host_mak