slang: fix mips build failure
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Fri, 25 Feb 2011 14:11:27 +0000 (11:11 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 25 Feb 2011 14:25:23 +0000 (15:25 +0100)
Closes #3295

Fix MIPS build failure as reported by Thomas Petazzoni.

We're forcing CFLAGS and busting -fPIC in the process.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/slang/slang.mk

index 74c800b0b39878adca0f1b28dea5ed004fa6ab90..0c604d9cd40e4b8a2d9d8b328a456a9f5c2a1f5c 100644 (file)
@@ -8,8 +8,10 @@ SLANG_SOURCE = slang-$(SLANG_VERSION)-mini.tar.bz2
 SLANG_SITE = http://www.uclibc.org/
 SLANG_INSTALL_STAGING = YES
 
+# We need to add -fPIC since we're busting original CFLAGS
+# that have it, see bug #3295
 define SLANG_BUILD_CMDS
-       $(MAKE1) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
+       $(MAKE1) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -fPIC" \
        LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
 endef