diff options
author | Steven Barth <steven@midlink.org> | 2008-07-29 10:14:11 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-07-29 10:14:11 +0000 |
commit | de89cc50016d5c7d4cb65b023aa3174918721690 (patch) | |
tree | ae5ac6929fd228c6f97845922875abeb8ae34ed3 /package/lua/Makefile | |
parent | b3fc353df8f9c7b07ecbeeac8ade50e79d714dd8 (diff) | |
download | master-187ad058-de89cc50016d5c7d4cb65b023aa3174918721690.tar.gz master-187ad058-de89cc50016d5c7d4cb65b023aa3174918721690.tar.bz2 master-187ad058-de89cc50016d5c7d4cb65b023aa3174918721690.zip |
lua: Remove -fPIC for non-powerpc platforms
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11985 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/lua/Makefile')
-rw-r--r-- | package/lua/Makefile | 7 |
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 |