summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2006-08-04 03:26:32 +0000
committerMike Baker <mbm@openwrt.org>2006-08-04 03:26:32 +0000
commit429f4764ac6023dd1e0380ff4a476a3c09d99577 (patch)
treefbf43d7157128cd8654fa948af3b415c4fb8ad67
parent05f548c0b20256d35d13549ac2277998878d4e02 (diff)
downloadmtk-20170518-429f4764ac6023dd1e0380ff4a476a3c09d99577.zip
mtk-20170518-429f4764ac6023dd1e0380ff4a476a3c09d99577.tar.gz
mtk-20170518-429f4764ac6023dd1e0380ff4a476a3c09d99577.tar.bz2
add quotes to TARGET_CC and TARGET_CROSS to help with distcc and ccache
SVN-Revision: 4429
-rw-r--r--openwrt/package/arptables/Makefile2
-rw-r--r--openwrt/package/busybox/Makefile4
-rw-r--r--openwrt/package/dropbear/Makefile4
-rw-r--r--openwrt/package/iproute2/Makefile2
-rw-r--r--openwrt/package/iptables/Makefile8
-rw-r--r--openwrt/package/libpcap/Makefile2
-rw-r--r--openwrt/package/openssl/Makefile2
-rw-r--r--openwrt/package/ppp/Makefile2
-rw-r--r--openwrt/target/image/generic/lzma-loader/Makefile4
9 files changed, 15 insertions, 15 deletions
diff --git a/openwrt/package/arptables/Makefile b/openwrt/package/arptables/Makefile
index b4bfe18..855169b 100644
--- a/openwrt/package/arptables/Makefile
+++ b/openwrt/package/arptables/Makefile
@@ -33,7 +33,7 @@ define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
- CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
+ CC="$(TARGET_CC)" LD="$(TARGET_CROSS)ld" \
COPT_FLAGS="$(TARGET_CFLAGS)" \
KERNEL_DIR="./include/linux"
endef
diff --git a/openwrt/package/busybox/Makefile b/openwrt/package/busybox/Makefile
index 31ec103..afe7c59 100644
--- a/openwrt/package/busybox/Makefile
+++ b/openwrt/package/busybox/Makefile
@@ -38,11 +38,11 @@ endef
define Build/Configure
$(SCRIPT_DIR)/gen_busybox_config.pl $(TOPDIR)/.config > $(PKG_BUILD_DIR)/.config
- yes '' | $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" -C $(PKG_BUILD_DIR) oldconfig
+ yes '' | $(MAKE) CC="$(TARGET_CC)" CROSS="$(TARGET_CROSS)" -C $(PKG_BUILD_DIR) oldconfig
endef
define Package/busybox/install
- $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(1)" \
+ $(MAKE) CC="$(TARGET_CC)" CROSS="$(TARGET_CROSS)" PREFIX="$(1)" \
EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR) install
-rm -rf $(1)/lib64
endef
diff --git a/openwrt/package/dropbear/Makefile b/openwrt/package/dropbear/Makefile
index f5e9b15..48e69e4 100644
--- a/openwrt/package/dropbear/Makefile
+++ b/openwrt/package/dropbear/Makefile
@@ -81,11 +81,11 @@ endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
- LD=$(TARGET_CC) \
+ LD="$(TARGET_CC)" \
PROGRAMS="dropbear dbclient dropbearkey scp" \
MULTI=1 SCPPROGRESS=1
$(MAKE) -C $(PKG_BUILD_DIR) \
- LD=$(TARGET_CC) \
+ LD="$(TARGET_CC)" \
PROGRAMS="dropbearconvert"
endef
diff --git a/openwrt/package/iproute2/Makefile b/openwrt/package/iproute2/Makefile
index d21a92c..e494177 100644
--- a/openwrt/package/iproute2/Makefile
+++ b/openwrt/package/iproute2/Makefile
@@ -45,7 +45,7 @@ define Build/Configure
endef
define Build/Compile
- $(MAKE) -j1 -C $(PKG_BUILD_DIR)/netem HOSTCC=$(HOSTCC) CFLAGS="-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I ../include -DRESOLVE_HOSTNAMES"
+ $(MAKE) -j1 -C $(PKG_BUILD_DIR)/netem HOSTCC="$(HOSTCC)" CFLAGS="-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I ../include -DRESOLVE_HOSTNAMES"
$(MAKE) -j1 -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS) KERNEL_INCLUDE=$(LINUX_DIR)/include all tc/tc ip/ip
endef
diff --git a/openwrt/package/iptables/Makefile b/openwrt/package/iptables/Makefile
index 99ef334..a28b8fd 100644
--- a/openwrt/package/iptables/Makefile
+++ b/openwrt/package/iptables/Makefile
@@ -163,8 +163,8 @@ define Build/Compile
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
- CC=$(TARGET_CC) COPT_FLAGS="$(TARGET_CFLAGS)" \
- KERNEL_DIR=$(LINUX_DIR) PREFIX=/usr \
+ CC="$(TARGET_CC)" COPT_FLAGS="$(TARGET_CFLAGS)" \
+ KERNEL_DIR="$(LINUX_DIR)" PREFIX=/usr \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install install-devel
endef
@@ -173,8 +173,8 @@ endef
define Build/InstallDev
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
- CC=$(TARGET_CC) COPT_FLAGS="$(TARGET_CFLAGS)" \
- KERNEL_DIR=$(LINUX_DIR) PREFIX=/usr \
+ CC="$(TARGET_CC)" COPT_FLAGS="$(TARGET_CFLAGS)" \
+ KERNEL_DIR="$(LINUX_DIR)" PREFIX=/usr \
DESTDIR="$(STAGING_DIR)" \
install install-devel
endef
diff --git a/openwrt/package/libpcap/Makefile b/openwrt/package/libpcap/Makefile
index 76c88af..1d9d437 100644
--- a/openwrt/package/libpcap/Makefile
+++ b/openwrt/package/libpcap/Makefile
@@ -61,7 +61,7 @@ define Build/Configure
--enable-static \
--disable-yydebug \
--enable-ipv6 \
- --with-build-cc=$(HOSTCC) \
+ --with-build-cc="$(HOSTCC)" \
--with-pcap=linux \
);
endef
diff --git a/openwrt/package/openssl/Makefile b/openwrt/package/openssl/Makefile
index 2320771..bbbd207 100644
--- a/openwrt/package/openssl/Makefile
+++ b/openwrt/package/openssl/Makefile
@@ -78,7 +78,7 @@ define Build/Compile
# Work around openssl build bug to link libssl.so with libcrypto.so.
-rm $(PKG_BUILD_DIR)/libssl.so.*.*.*
$(MAKE) -C $(PKG_BUILD_DIR) -j1 \
- CC=$(TARGET_CC) \
+ CC="$(TARGET_CC)" \
CCOPTS="$(TARGET_CFLAGS) -fomit-frame-pointer" \
do_linux-shared
$(MAKE) -C $(PKG_BUILD_DIR) -j1 \
diff --git a/openwrt/package/ppp/Makefile b/openwrt/package/ppp/Makefile
index 6581ef7..a42af41 100644
--- a/openwrt/package/ppp/Makefile
+++ b/openwrt/package/ppp/Makefile
@@ -87,7 +87,7 @@ define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)/usr
$(MAKE) -C $(PKG_BUILD_DIR) \
- CC=$(TARGET_CC) \
+ CC="$(TARGET_CC)" \
COPTS="$(TARGET_CFLAGS)" \
PRECOMPILED_FILTER=1 \
STAGING_DIR="$(STAGING_DIR)" \
diff --git a/openwrt/target/image/generic/lzma-loader/Makefile b/openwrt/target/image/generic/lzma-loader/Makefile
index 6cbbd94..f9beef4 100644
--- a/openwrt/target/image/generic/lzma-loader/Makefile
+++ b/openwrt/target/image/generic/lzma-loader/Makefile
@@ -19,8 +19,8 @@ $(PKG_BUILD_DIR)/.prepared:
touch $@
$(PKG_BUILD_DIR)/lzma.elf: $(PKG_BUILD_DIR)/.prepared $(PKG_BUILD_DIR)/vmlinux.lzma
- $(MAKE) -C $(PKG_BUILD_DIR) CC=$(TARGET_CC) \
- LD=$(TARGET_CROSS)ld CROSS_COMPILE=$(TARGET_CROSS) \
+ $(MAKE) -C $(PKG_BUILD_DIR) CC="$(TARGET_CC)" \
+ LD="$(TARGET_CROSS)ld" CROSS_COMPILE="$(TARGET_CROSS)" \
RAMSIZE=$(RAMSIZE) \
LOADADDR=$(LOADADDR) \
KERNEL_ENTRY=$(KERNEL_ENTRY) \