From patchwork Wed Jan 20 17:27:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [3/5] Add -static earlier to LDFLAGS for compile_prog() Date: Wed, 20 Jan 2010 07:27:23 -0000 From: Juan Quintela X-Patchwork-Id: 43327 Message-Id: <0435e801928e38b298ff72f19236299298ce4f02.1264008180.git.quintela@redhat.com> To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Lo=C3=AFc=20Minier?= From: Loïc Minier 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: Juan Quintela --- configure | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index c671918..83f8b26 100755 --- a/configure +++ b/configure @@ -456,7 +456,9 @@ for opt do ;; --enable-gprof) gprof="yes" ;; - --static) static="yes" + --static) + static="yes" + LDFLAGS="-static $LDFLAGS" ;; --disable-sdl) sdl="no" ;; @@ -1977,7 +1979,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