make sure iproute2 uses target cflags

This commit is contained in:
Mike Frysinger 2004-10-09 18:49:09 +00:00
parent 45d41095b4
commit dfca4ee6ae
1 changed files with 2 additions and 1 deletions

View 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