iproute2: compile the static libraries with $(FPIC), as they are reused by other...
authorFelix Fietkau <nbd@openwrt.org>
Thu, 5 Nov 2009 22:29:14 +0000 (22:29 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 5 Nov 2009 22:29:14 +0000 (22:29 +0000)
SVN-Revision: 18323

package/iproute2/Makefile

index b36b95bc9bc8a854966eb1cbb9f1201901bfe79c..a3b5f471cfeb0314ee186dca8911ec170221f27c 100644 (file)
@@ -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