diff options
| author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-11-05 22:29:14 +0000 | 
|---|---|---|
| committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-11-05 22:29:14 +0000 | 
| commit | 69c0ee58e91049cead2cd5878b0fe132c3ea9fbb (patch) | |
| tree | 67ebe5097f0aca9171fe315a6dbc6cb6c3be1ec3 | |
| parent | 0b7968af0202bda39b480e943d4467272596a32f (diff) | |
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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18323 3c298f89-4303-0410-b956-a3cf2f4a3e73
| -rw-r--r-- | package/iproute2/Makefile | 8 | 
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 | 
