From df7cff0c92ecdd74d91abf8ac059bada0b9eb0dd Mon Sep 17 00:00:00 2001 From: cyrus Date: Tue, 29 Jul 2008 10:14:11 +0000 Subject: lua: Remove -fPIC for non-powerpc platforms git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11985 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/lua/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'package') diff --git a/package/lua/Makefile b/package/lua/Makefile index c7706376d..96dda822c 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 -- cgit v1.2.3