fix lua compile issues on ixp4xx (EABI) by linking libgcc into liblua
[openwrt.git] / package / lua / Makefile
index ae6206d..30eac84 100644 (file)
@@ -53,7 +53,7 @@ endef
 
 define Package/lua
 $(call Package/lua/Default)
-  DEPENDS:=+liblua +libreadline +libncurses
+  DEPENDS:=+liblua
   TITLE+= (interpreter)
 endef
 
@@ -87,6 +87,8 @@ endef
 define Build/Configure
 endef
 
+TARGET_CFLAGS += -DLUA_USE_LINUX
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CC="$(TARGET_CROSS)gcc" \
@@ -94,7 +96,7 @@ define Build/Compile
                AR="$(TARGET_CROSS)ar rcu" \
                RANLIB="$(TARGET_CROSS)ranlib" \
                INSTALL_ROOT=/usr \
-               MYCFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
+               CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
                MYLDFLAGS="$(TARGET_LDFLAGS)" \
                PKG_VERSION=$(PKG_VERSION) \
                all linux 
This page took 0.023706 seconds and 4 git commands to generate.