From: Nicolas Thill Date: Thu, 20 Sep 2007 12:36:22 +0000 (+0000) Subject: fix bitlbee build X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=79fd8050574c1a4155de7762a53e97e4d155f209;p=openwrt%2Fsvn-archive%2Fpackages.git fix bitlbee build SVN-Revision: 8874 --- diff --git a/net/bitlbee/Makefile b/net/bitlbee/Makefile index 224ca9fdd..af89357ce 100644 --- a/net/bitlbee/Makefile +++ b/net/bitlbee/Makefile @@ -64,13 +64,17 @@ define Build/Configure --glib1=1 \ --glib1prefix="$(STAGING_DIR)/usr" \ ); + $(SED) 's,^CFLAGS=.*,CFLAGS=$(TARGET_CFLAGS),g'\ + $(PKG_BUILD_DIR)/Makefile.settings + @echo 'CFLAGS+=-I$(STAGING_DIR)/usr/lib/libiconv/include' >> \ + $(PKG_BUILD_DIR)/Makefile.settings + @echo 'LFLAGS+=-L$(STAGING_DIR)/usr/lib' >> \ + $(PKG_BUILD_DIR)/Makefile.settings + @echo 'LFLAGS+=-L$(STAGING_DIR)/usr/lib/libiconv/lib' >> \ + $(PKG_BUILD_DIR)/Makefile.settings endef define Build/Compile - @echo 'CFLAGS+="-I$(STAGING_DIR)/usr/lib/libiconv/include"' >> \ - $(PKG_BUILD_DIR)/Makefile.settings - @echo 'LFLAGS+="-L$(STAGING_DIR)/usr/lib/libiconv/lib"' >> \ - $(PKG_BUILD_DIR)/Makefile.settings $(MAKE) -C $(PKG_BUILD_DIR) endef