libiconv: compile iconv stub with TARGET_CFLAGS
authorFlorian Fainelli <florian@openwrt.org>
Tue, 19 Feb 2013 17:22:46 +0000 (17:22 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 19 Feb 2013 17:22:46 +0000 (17:22 +0000)
Fixes spurious build issues when changing target CFLAGS for specific ABI
options (such as ARM's floating point ABI).

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 35683

package/libs/libiconv/Makefile

index 66d1cfb3b90952e12bc44575ceb5791f8394fe91..d2f5b7edd9d450e01d479fe0f3ee0c16df87d3ad 100644 (file)
@@ -36,7 +36,7 @@ define Build/Configure
 endef
 
 define Build/Compile
-       $(TARGET_CC) -c $(PKG_BUILD_DIR)/iconv.c -o $(PKG_BUILD_DIR)/iconv.o -I$(PKG_BUILD_DIR)/include $(FPIC)
+       $(TARGET_CC) $(TARGET_CFLAGS) -c $(PKG_BUILD_DIR)/iconv.c -o $(PKG_BUILD_DIR)/iconv.o -I$(PKG_BUILD_DIR)/include $(FPIC)
        $(TARGET_CROSS)ar rcs $(PKG_BUILD_DIR)/libiconv.a $(PKG_BUILD_DIR)/iconv.o
 endef