pixman: pass cflags, add -fPIC
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 14 Nov 2012 12:26:54 +0000 (13:26 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 14 Nov 2012 12:28:40 +0000 (13:28 +0100)
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

index e68bb8fae4d7016d88c2491a93de52d69f0a8c6c..4538b87e367cdd9ad1d7814828bd9ece8302e82b 100644 (file)
--- 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; $(SRC_PATH)/pixman/configure $(AUTOCONF_HOST) --disable-gtk --disable-shared --enable-static)
+       (cd pixman; CFLAGS="$(CFLAGS) -fPIC" $(SRC_PATH)/pixman/configure $(AUTOCONF_HOST) --disable-gtk --disable-shared --enable-static)
 
 $(SRC_PATH)/pixman/configure:
        (cd $(SRC_PATH)/pixman; autoreconf -v --install)