linux-atm: fix compilation of 'qgen' host tool
authorNicolas Thill <nico@openwrt.org>
Tue, 23 Mar 2010 14:32:14 +0000 (14:32 +0000)
committerNicolas Thill <nico@openwrt.org>
Tue, 23 Mar 2010 14:32:14 +0000 (14:32 +0000)
SVN-Revision: 20387

package/linux-atm/Makefile

index 8fd081b70ffd8c1cbee0e225af33dd5334e1edbf..38e903406e1c2ee0dda0ee6cf09097d9293b73c6 100644 (file)
@@ -40,11 +40,6 @@ define Package/atm-tools/description
   This package contains the Linux ATM tools.
 endef
 
-define Build/Prepare
-       $(call Build/Prepare/Default)
-       $(INSTALL_BIN) $(SCRIPT_DIR)/config.sub $(SCRIPT_DIR)/config.guess $(PKG_BUILD_DIR)/
-endef
-
 define Build/Configure
        $(call Build/Configure/Default)
        # prevent autoheader invocation
@@ -52,6 +47,10 @@ define Build/Configure
 endef
 
 define Build/Compile
+       # src/qgen is built with HOSTCC, which does not really like our LDFLAGS
+       $(MAKE) -C $(PKG_BUILD_DIR)/src/qgen \
+               LDFLAGS="" \
+               all 
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
                all install