From patchwork Sun Jan 31 11:23:45 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Lo=C3=AFc_Minier?= X-Patchwork-Id: 44111 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 785CBB7D5A for ; Sun, 31 Jan 2010 22:35:19 +1100 (EST) Received: from localhost ([127.0.0.1]:47501 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbXwa-00048Z-OG for incoming@patchwork.ozlabs.org; Sun, 31 Jan 2010 06:26:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NbXuC-0003Xe-Gv for qemu-devel@nongnu.org; Sun, 31 Jan 2010 06:23:52 -0500 Received: from [199.232.76.173] (port=50805 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbXuB-0003Ws-U3 for qemu-devel@nongnu.org; Sun, 31 Jan 2010 06:23:51 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NbXuA-0004uH-CY for qemu-devel@nongnu.org; Sun, 31 Jan 2010 06:23:51 -0500 Received: from duck.dooz.org ([194.146.227.125]:59689) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NbXuA-0004u3-2c for qemu-devel@nongnu.org; Sun, 31 Jan 2010 06:23:50 -0500 Received: from bee.dooz.org (serris.dooz.org [88.166.229.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by duck.dooz.org (Postfix) with ESMTP id 9E1C6C809C; Sun, 31 Jan 2010 12:23:49 +0100 (CET) Received: by bee.dooz.org (Postfix, from userid 1000) id 8880212972; Sun, 31 Jan 2010 12:23:46 +0100 (CET) From: =?UTF-8?q?Lo=C3=AFc=20Minier?= To: qemu-devel@nongnu.org Date: Sun, 31 Jan 2010 12:23:45 +0100 Message-Id: <1264937025-29812-1-git-send-email-lool@dooz.org> X-Mailer: git-send-email 1.6.5 MIME-Version: 1.0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: =?UTF-8?q?Lo=C3=AFc=20Minier?= Subject: [Qemu-devel] [PATCH] Add -static earlier to LDFLAGS for compile_prog() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- 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