aboutsummaryrefslogtreecommitdiffstats
path: root/package/lua
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2008-07-29 10:14:11 +0000
committerSteven Barth <cyrus@openwrt.org>2008-07-29 10:14:11 +0000
commita1031eeb238477ff4bb88603f917ea794752c1d2 (patch)
treec35acb845bb441f1de224cf7a370b297b0c62dba /package/lua
parent53332ba9c28d35c9bb1d4dc8aef5ac0bbab06e53 (diff)
downloadupstream-a1031eeb238477ff4bb88603f917ea794752c1d2.tar.gz
upstream-a1031eeb238477ff4bb88603f917ea794752c1d2.tar.bz2
upstream-a1031eeb238477ff4bb88603f917ea794752c1d2.zip
lua: Remove -fPIC for non-powerpc platforms
SVN-Revision: 11985
Diffstat (limited to 'package/lua')
-rw-r--r--package/lua/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/lua/Makefile b/package/lua/Makefile
index c7706376dd..96dda822ce 100644
--- a/package/lua/Makefile
+++ b/package/lua/Makefile
@@ -24,6 +24,11 @@ PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
+ifeq ($(ARCH),powerpc)
+ FPIC:=-fPIC
+endif
+
+
define Package/lua/Default
SUBMENU:=LUA
SECTION:=lang
@@ -96,7 +101,7 @@ define Build/Compile
AR="$(TARGET_CROSS)ar rcu" \
RANLIB="$(TARGET_CROSS)ranlib" \
INSTALL_ROOT=/usr \
- CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -fPIC" \
+ CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(FPIC)" \
MYLDFLAGS="$(TARGET_LDFLAGS)" \
PKG_VERSION=$(PKG_VERSION) \
all linux