summaryrefslogtreecommitdiff
path: root/package/iproute2
diff options
context:
space:
mode:
Diffstat (limited to 'package/iproute2')
-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