1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-19 23:17:53 +01:00

iproute2: compile the static libraries with $(FPIC), as they are reused by other packages for inclusion into shared libraries should fix collectd build failures on mips

SVN-Revision: 18323
This commit is contained in:
Felix Fietkau 2009-11-05 22:29:14 +00:00
parent f70c8b37e4
commit a006cb5e5c

@ -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