libiconv: compile iconv stub with TARGET_CFLAGS

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
This commit is contained in:
Florian Fainelli 2013-02-19 17:22:46 +00:00
parent 76b797c759
commit 23dc201979
1 changed files with 1 additions and 1 deletions

View 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