make sure iproute2 uses target cflags
authorMike Frysinger <vapier@gentoo.org>
Sat, 9 Oct 2004 18:49:09 +0000 (18:49 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 9 Oct 2004 18:49:09 +0000 (18:49 -0000)
package/iproute2/iproute2.mk

index 4aa840585f9c3bb959cbc3dce2268e3dddc159c4..e5dd2d46b731ef9a2288f5152b3590d4337e3892 100644 (file)
@@ -22,7 +22,8 @@ $(IPROUTE2_DIR)/.unpacked: $(DL_DIR)/$(IPROUTE2_SOURCE)
 $(IPROUTE2_DIR)/.configured: $(IPROUTE2_DIR)/.unpacked
        (cd $(IPROUTE2_DIR); \
                ./configure; \
-               $(SED) '/TC_CONFIG_ATM/s:=.*:=n:' Config)
+               $(SED) '/TC_CONFIG_ATM/s:=.*:=n:' Config; \
+               $(SED) '/^CCOPTS/s:-O2.*:$(TARGET_CFLAGS):' Makefile)
        touch  $(IPROUTE2_DIR)/.configured
 
 $(IPROUTE2_DIR)/$(IPROUTE2_BINARY): $(IPROUTE2_DIR)/.configured