mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
lua: Remove -fPIC for non-powerpc platforms
SVN-Revision: 11985
This commit is contained in:
parent
53332ba9c2
commit
a1031eeb23
@ -24,6 +24,11 @@ PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
ifeq ($(ARCH),powerpc)
|
||||||
|
FPIC:=-fPIC
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
define Package/lua/Default
|
define Package/lua/Default
|
||||||
SUBMENU:=LUA
|
SUBMENU:=LUA
|
||||||
SECTION:=lang
|
SECTION:=lang
|
||||||
@ -96,7 +101,7 @@ define Build/Compile
|
|||||||
AR="$(TARGET_CROSS)ar rcu" \
|
AR="$(TARGET_CROSS)ar rcu" \
|
||||||
RANLIB="$(TARGET_CROSS)ranlib" \
|
RANLIB="$(TARGET_CROSS)ranlib" \
|
||||||
INSTALL_ROOT=/usr \
|
INSTALL_ROOT=/usr \
|
||||||
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -fPIC" \
|
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(FPIC)" \
|
||||||
MYLDFLAGS="$(TARGET_LDFLAGS)" \
|
MYLDFLAGS="$(TARGET_LDFLAGS)" \
|
||||||
PKG_VERSION=$(PKG_VERSION) \
|
PKG_VERSION=$(PKG_VERSION) \
|
||||||
all linux
|
all linux
|
||||||
|
Loading…
Reference in New Issue
Block a user