summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-10-09 18:49:09 +0000
committerMike Frysinger <vapier@gentoo.org>2004-10-09 18:49:09 +0000
commitdfca4ee6aee92e6d98163a55fe086577507db683 (patch)
treef50dd40ff45ca3f6b14344df8b906c90a6af5213
parent45d41095b487894bfce535ccec8d2c05b33d94cd (diff)
downloadbuildroot-novena-dfca4ee6aee92e6d98163a55fe086577507db683.tar.gz
buildroot-novena-dfca4ee6aee92e6d98163a55fe086577507db683.zip
make sure iproute2 uses target cflags
-rw-r--r--package/iproute2/iproute2.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/iproute2/iproute2.mk b/package/iproute2/iproute2.mk
index 4aa840585..e5dd2d46b 100644
--- a/package/iproute2/iproute2.mk
+++ b/package/iproute2/iproute2.mk
@@ -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