diff mbox

[4/6] pixman: add pass cflags, add -fPIC

Message ID 1352796133-956-5-git-send-email-kraxel@redhat.com
State New
Headers show

Commit Message

Gerd Hoffmann Nov. 13, 2012, 8:42 a.m. UTC
Pass on CFLAGS to the pixman configure script.
Add -fPIC to the cflags, needed to make the final link succeed.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Peter Maydell Nov. 13, 2012, 6:28 p.m. UTC | #1
On 13 November 2012 08:42, Gerd Hoffmann <kraxel@redhat.com> wrote:
> Pass on CFLAGS to the pixman configure script.
> Add -fPIC to the cflags, needed to make the final link succeed.

In Subject, s/add pass/pass/.

-- PMM
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 0d2ce50..ae4e994 100644
--- a/Makefile
+++ b/Makefile
@@ -122,7 +122,7 @@  subdir-pixman: pixman/Makefile
 	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pixman V="$(V)" all,)
 
 pixman/Makefile: $(SRC_PATH)/pixman/configure
-	(cd pixman; CC="$(CC)" LD="$(LD)" AR="$(AR)" NM="$(NM)" RANLIB="$(RANLIB)" $(SRC_PATH)/pixman/configure --disable-gtk --disable-shared --enable-static)
+	(cd pixman; CC="$(CC)" LD="$(LD)" AR="$(AR)" NM="$(NM)" RANLIB="$(RANLIB)" CFLAGS="$(CFLAGS) -fPIC" $(SRC_PATH)/pixman/configure --disable-gtk --disable-shared --enable-static)
 
 $(SRC_PATH)/pixman/configure:
 	(cd $(SRC_PATH)/pixman; autoreconf -v --install)