From: Steven Barth Date: Tue, 29 Jul 2008 10:14:11 +0000 (+0000) Subject: lua: Remove -fPIC for non-powerpc platforms X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a1031eeb238477ff4bb88603f917ea794752c1d2;p=openwrt%2Fstaging%2Frmilecki.git lua: Remove -fPIC for non-powerpc platforms SVN-Revision: 11985 --- diff --git a/package/lua/Makefile b/package/lua/Makefile index c7706376dd1..96dda822ce9 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