fix bitlbee build
authorNicolas Thill <nico@openwrt.org>
Thu, 20 Sep 2007 12:36:22 +0000 (12:36 +0000)
committerNicolas Thill <nico@openwrt.org>
Thu, 20 Sep 2007 12:36:22 +0000 (12:36 +0000)
SVN-Revision: 8874

net/bitlbee/Makefile

index 224ca9fdd1b5bd91dd81fbda5b7e7f2372fef58e..af89357ce8dedc3c9fc7ae3b42f35b9781414da6 100644 (file)
@@ -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