fix lua compile issues on ixp4xx (EABI) by linking libgcc into liblua
[openwrt-10.03/.git] / package / lua / Makefile
index ae6206d3b6546a3c5c6d9839621f5684fcdcab03..30eac84cc7f51a730692b192ee83f5c4a4766e91 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