Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nds7j-0001dn-37 for qemu-devel@nongnu.org; Sat, 06 Feb 2010 16:23:27 -0500 Received: from [199.232.76.173] (port=60199 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nds7i-0001da-Nf for qemu-devel@nongnu.org; Sat, 06 Feb 2010 16:23:26 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nds7h-0004fW-E1 for qemu-devel@nongnu.org; Sat, 06 Feb 2010 16:23:26 -0500 Received: from hall.aurel32.net ([88.191.82.174]:42524) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nds7h-0004fG-1p for qemu-devel@nongnu.org; Sat, 06 Feb 2010 16:23:25 -0500 Date: Sat, 6 Feb 2010 22:23:22 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] Add -static earlier to LDFLAGS for compile_prog() Message-ID: <20100206212322.GB15349@volta.aurel32.net> References: <1264937025-29812-1-git-send-email-lool@dooz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1264937025-29812-1-git-send-email-lool@dooz.org> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-15?Q?Lo=EFc?= Minier Cc: qemu-devel@nongnu.org On Sun, Jan 31, 2010 at 12:23:45PM +0100, Loïc Minier wrote: > 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. Thanks, applied. > Signed-off-by: Loïc Minier > --- > configure | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/configure b/configure > index 42ef628..ab6bd8e 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 > -- > 1.6.5 > > > > -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net