add quotes to TARGET_CC and TARGET_CROSS to help with distcc and ccache
authorMike Baker <mbm@openwrt.org>
Fri, 4 Aug 2006 03:26:32 +0000 (03:26 +0000)
committerMike Baker <mbm@openwrt.org>
Fri, 4 Aug 2006 03:26:32 +0000 (03:26 +0000)
SVN-Revision: 4429

openwrt/package/arptables/Makefile
openwrt/package/busybox/Makefile
openwrt/package/dropbear/Makefile
openwrt/package/iproute2/Makefile
openwrt/package/iptables/Makefile
openwrt/package/libpcap/Makefile
openwrt/package/openssl/Makefile
openwrt/package/ppp/Makefile
openwrt/target/image/generic/lzma-loader/Makefile

index b4bfe18a73752dd70f1e656561f82cab88d3ab30..855169b7f9d32d3325482ef9415a1622b7d0c09f 100644 (file)
@@ -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
index 31ec1035174d7a525933e28d4f18b88d09a7bac2..afe7c59e3f7d85c2aac41ef92ba3c33c74bbf6d6 100644 (file)
@@ -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
index f5e9b154d1f2dccccd1cbd508fab0c9afbbe97d1..48e69e466f729aeed95bdacecce65ca9fda338eb 100644 (file)
@@ -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
        
index d21a92c66b6862b70a604de0b3c9ef8f37724b18..e494177c90d1ef5354e08ac06e13da53326deb75 100644 (file)
@@ -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
 
index 99ef3347c0c4c2a7326106533e28c6bd73b14dbf..a28b8fd8ed1365040900f7bb7b1c93f50f29247e 100644 (file)
@@ -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
index 76c88af9c4309e611952b9f8b6e00309c95d07db..1d9d4371fb3f34fe6d0f31ec749916b6634d96ab 100644 (file)
@@ -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
index 23207714beb8b650bcc3a2a6f7f205f03db824d7..bbbd2073ed4586cb66ac3017dabfbbc76ac2f983 100644 (file)
@@ -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 \
index 6581ef7e2bdb4d6b0eb94d8c2bd2057cee87ed66..a42af41d31f2cc9d975a3cf459a1f620cfd6f74e 100644 (file)
@@ -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)" \
index 6cbbd942ccb9d6830e9db0f9ff3a9c67675d4bfa..f9beef4b8e9f66cf7f52f7665e84d61351096353 100644 (file)
@@ -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) \