Commit 34ce7fb6 authored by Gustavo Zacarias's avatar Gustavo Zacarias Committed by Peter Korsgaard
Browse files

slang: fix mips build failure



Closes #3295

Fix MIPS build failure as reported by Thomas Petazzoni.

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

Signed-off-by: default avatarGustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 557982c2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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