Fixed Luasocket build
authorSteven Barth <steven@midlink.org>
Sat, 6 Sep 2008 15:47:07 +0000 (15:47 +0000)
committerSteven Barth <steven@midlink.org>
Sat, 6 Sep 2008 15:47:07 +0000 (15:47 +0000)
contrib/package/luasocket/Makefile

index e35cfe9854c898dbee5b99060df02229a70b1f5c..65538d18dd45c18ca34c143a766eb9f9ddf1d6fa 100644 (file)
@@ -30,10 +30,10 @@ define Build/Compile
        $(call Build/Compile/Default)
 endef
 
-MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -pedantic -Wall -fpic" LDFLAGS="$(TARGET_LDFLAGS) -shared -fpic"
+MAKE_FLAGS += LD="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -pedantic -Wall -fpic" LDFLAGS="$(TARGET_LDFLAGS) -shared -fpic"
 
 define Package/luasocket/install
        $(MAKE) -C$(PKG_BUILD_DIR) install INSTALL_TOP_SHARE=$(1)/usr/lib/lua INSTALL_TOP_LIB=$(1)/usr/lib/lua
 endef
 
-$(eval $(call BuildPackage,luasocket))
\ No newline at end of file
+$(eval $(call BuildPackage,luasocket))