summaryrefslogtreecommitdiffstats
path: root/package/iproute2
diff options
context:
space:
mode:
Diffstat (limited to 'package/iproute2')
-rw-r--r--package/iproute2/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/iproute2/Makefile b/package/iproute2/Makefile
index b36b95bc9..a3b5f471c 100644
--- a/package/iproute2/Makefile
+++ b/package/iproute2/Makefile
@@ -51,9 +51,15 @@ define Build/Configure
$(SED) "s, misc,," $(PKG_BUILD_DIR)/Makefile
endef
+MAKE_FLAGS += \
+ EXTRA_CCOPTS="$(TARGET_CFLAGS)" \
+ KERNEL_INCLUDE="$(LINUX_DIR)/include" \
+ FPIC="$(FPIC)" \
+ all tc/tc ip/ip
+
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/netem HOSTCC="$(HOSTCC)" EXTRA_CCOPTS="$(TARGET_CFLAGS)" CFLAGS="-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I ../include -DRESOLVE_HOSTNAMES"
- $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS) EXTRA_CCOPTS="$(TARGET_CFLAGS)" KERNEL_INCLUDE=$(LINUX_DIR)/include all tc/tc ip/ip
+ $(Build/Compile/Default)
endef
define Build/InstallDev