From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tuib7-00049M-W8 for qemu-devel@nongnu.org; Mon, 14 Jan 2013 06:53:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tuib2-0004a6-QL for qemu-devel@nongnu.org; Mon, 14 Jan 2013 06:53:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:20514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tuib2-0004Zo-Hb for qemu-devel@nongnu.org; Mon, 14 Jan 2013 06:52:56 -0500 From: Gerd Hoffmann Date: Mon, 14 Jan 2013 12:52:52 +0100 Message-Id: <1358164372-14571-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1358164372-14571-1-git-send-email-kraxel@redhat.com> References: <1358164372-14571-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] pixman: pass extra cflags and ldflags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Scott Wood , Gerd Hoffmann Store --extra-cflags and --extra-ldflags in config-host.mak, then pass them on to the pixman configure script. Cc: Scott Wood Signed-off-by: Gerd Hoffmann --- Makefile | 2 +- configure | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0200bf3..2286174 100644 --- a/Makefile +++ b/Makefile @@ -126,7 +126,7 @@ subdir-pixman: pixman/Makefile $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pixman V="$(V)" all,) pixman/Makefile: $(SRC_PATH)/pixman/configure - (cd pixman; CFLAGS="$(CFLAGS) -fPIC" $(SRC_PATH)/pixman/configure $(AUTOCONF_HOST) --disable-gtk --disable-shared --enable-static) + (cd pixman; CFLAGS="$(CFLAGS) -fPIC $(extra_cflags) $(extra_ldflags)" $(SRC_PATH)/pixman/configure $(AUTOCONF_HOST) --disable-gtk --disable-shared --enable-static) $(SRC_PATH)/pixman/configure: (cd $(SRC_PATH)/pixman; autoreconf -v --install) diff --git a/configure b/configure index ea42fe2..a750bb5 100755 --- a/configure +++ b/configure @@ -240,8 +240,10 @@ for opt do --cpu=*) cpu="$optarg" ;; --extra-cflags=*) QEMU_CFLAGS="$optarg $QEMU_CFLAGS" + EXTRA_CFLAGS="$optarg" ;; --extra-ldflags=*) LDFLAGS="$optarg $LDFLAGS" + EXTRA_LDFLAGS="$optarg" ;; --enable-debug-info) debug_info="yes" ;; @@ -3349,6 +3351,8 @@ echo "qemu_datadir=$qemu_datadir" >> $config_host_mak echo "qemu_docdir=$qemu_docdir" >> $config_host_mak echo "qemu_localstatedir=$local_statedir" >> $config_host_mak echo "qemu_helperdir=$libexecdir" >> $config_host_mak +echo "extra_cflags=$EXTRA_CFLAGS" >> $config_host_mak +echo "extra_ldflags=$EXTRA_LDFLAGS" >> $config_host_mak echo "ARCH=$ARCH" >> $config_host_mak if test "$debug_tcg" = "yes" ; then -- 1.7.9.7