fix conflicting optimization flags set by configure
authorNicolas Thill <nico@openwrt.org>
Fri, 27 Oct 2006 19:34:09 +0000 (19:34 +0000)
committerNicolas Thill <nico@openwrt.org>
Fri, 27 Oct 2006 19:34:09 +0000 (19:34 +0000)
SVN-Revision: 5316

net/ettercap/Makefile

index 9200549..dbf3310 100644 (file)
@@ -38,6 +38,12 @@ define Package/ettercap/conffiles
 /etc/etter.conf
 endef
 
+define Build/Prepare
+       $(call Build/Prepare/Default)
+       # remove default optimization flags set by configure
+       $(SED) 's,DEBUG_FLAGS=.*,DEBUG_FLAGS=,g' $(PKG_BUILD_DIR)/configure
+endef
+
 define Build/Configure
        $(call Build/Configure/Default, \
                --with-libpcap="$(STAGING_DIR)/usr" \
@@ -53,7 +59,6 @@ define Build/Configure
        )
 endef
 
-
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \