diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-11-05 11:55:00 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-11-05 11:55:00 +0000 |
commit | cf3d141a6c995f29685579617dd802e99196b242 (patch) | |
tree | b9472ef5559e06a6ab8fbf26740facdd7afbe732 /package/iproute2/Makefile | |
parent | 78b006e0f025bfd763df06564057335033da3e3d (diff) | |
download | master-187ad058-cf3d141a6c995f29685579617dd802e99196b242.tar.gz master-187ad058-cf3d141a6c995f29685579617dd802e99196b242.tar.bz2 master-187ad058-cf3d141a6c995f29685579617dd802e99196b242.zip |
Pass TARGET_CFLAGS using and external variable instead a sed expression that can fail when TARGET_CFLAGS contains the ":" symbol.
Signed-off: Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18311 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/iproute2/Makefile')
-rw-r--r-- | package/iproute2/Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/package/iproute2/Makefile b/package/iproute2/Makefile index da18b4b0fc..b36b95bc9b 100644 --- a/package/iproute2/Makefile +++ b/package/iproute2/Makefile @@ -41,7 +41,6 @@ $(call Package/iproute2/Default) endef define Build/Configure - $(SED) "s:-O2:${TARGET_CFLAGS}:g" $(PKG_BUILD_DIR)/Makefile $(SED) "s,-I/usr/include/db3,," $(PKG_BUILD_DIR)/Makefile $(SED) "s,^KERNEL_INCLUDE.*,KERNEL_INCLUDE=$(LINUX_DIR)/include," \ $(PKG_BUILD_DIR)/Makefile @@ -53,8 +52,8 @@ define Build/Configure endef define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR)/netem HOSTCC="$(HOSTCC)" CFLAGS="-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I ../include -DRESOLVE_HOSTNAMES" - $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS) KERNEL_INCLUDE=$(LINUX_DIR)/include all tc/tc ip/ip + $(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 endef define Build/InstallDev |