From bb1bf2edb5aae96f8255ae92f28f1da264894d02 Mon Sep 17 00:00:00 2001 From: mbm Date: Fri, 4 Aug 2006 03:28:27 +0000 Subject: [PATCH 1/1] add quotes to TARGET_CC and TARGET_CROSS to help with distcc and ccache git-svn-id: svn://svn.openwrt.org/openwrt/packages@4430 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- libs/axtls/Makefile | 2 +- libs/bzip2/Makefile | 2 +- libs/libaudiofile/Makefile | 2 +- libs/libelf/Makefile | 2 +- libs/libiconv/Makefile | 2 +- libs/libusb/Makefile | 2 +- net/aiccu/Makefile | 2 +- net/autossh/Makefile | 2 +- net/dhcp6/Makefile | 4 ++-- net/elhttp/Makefile | 2 +- net/elinks/Makefile | 2 +- net/fping/Makefile | 4 ++-- net/httping/Makefile | 2 +- net/oidentd/Makefile | 2 +- net/pptpd/Makefile | 2 +- net/tcpdump/Makefile | 2 +- net/wpa_supplicant/Makefile | 2 +- net/yafc/Makefile | 2 +- utils/bc/Makefile | 2 +- utils/gnupg/Makefile | 2 +- utils/hdparm/Makefile | 2 +- utils/heyu/Makefile | 2 +- utils/lcd4linux/Makefile | 2 +- utils/microcom/Makefile | 2 +- utils/pciutils/Makefile | 2 +- utils/strace/Makefile | 2 +- 26 files changed, 28 insertions(+), 28 deletions(-) diff --git a/libs/axtls/Makefile b/libs/axtls/Makefile index c74094281..d4f54913c 100644 --- a/libs/axtls/Makefile +++ b/libs/axtls/Makefile @@ -44,7 +44,7 @@ endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) \ + CC="$(TARGET_CC)" \ OPT_CFLAGS="$(TARGET_CFLAGS)" OPT_LDFLAGS="" endef diff --git a/libs/bzip2/Makefile b/libs/bzip2/Makefile index bcb68af3c..0a46e4bb8 100644 --- a/libs/bzip2/Makefile +++ b/libs/bzip2/Makefile @@ -35,7 +35,7 @@ define Build/Compile mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ $(TARGET_CONFIGURE_OPTS) \ - CC=$(TARGET_CC) \ + CC="$(TARGET_CC)" \ DESTDIR="$(PKG_INSTALL_DIR)" \ libbz2.a endef diff --git a/libs/libaudiofile/Makefile b/libs/libaudiofile/Makefile index c9def02d9..689d40a71 100644 --- a/libs/libaudiofile/Makefile +++ b/libs/libaudiofile/Makefile @@ -62,7 +62,7 @@ define Build/Configure $(DISABLE_LARGEFILE) \ --enable-shared \ --enable-static \ - --with-build-cc=$(HOSTCC) \ + --with-build-cc="$(HOSTCC)" \ ); endef diff --git a/libs/libelf/Makefile b/libs/libelf/Makefile index ba16def6a..d6443428f 100644 --- a/libs/libelf/Makefile +++ b/libs/libelf/Makefile @@ -72,7 +72,7 @@ define Build/Compile rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) -j1 \ - CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld ARCH=$(ARCH) \ + CC="$(TARGET_CC)" LD="$(TARGET_CROSS)ld" ARCH=$(ARCH) \ instroot="$(PKG_INSTALL_DIR)" \ all install endef diff --git a/libs/libiconv/Makefile b/libs/libiconv/Makefile index 9bdafe541..49eade9f3 100644 --- a/libs/libiconv/Makefile +++ b/libs/libiconv/Makefile @@ -35,7 +35,7 @@ endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) + CC="$(TARGET_CC)" rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ diff --git a/libs/libusb/Makefile b/libs/libusb/Makefile index a1fedbb9e..b8a882c15 100644 --- a/libs/libusb/Makefile +++ b/libs/libusb/Makefile @@ -66,7 +66,7 @@ define Build/Compile rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) -j1 \ - CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld ARCH=$(ARCH) \ + CC="$(TARGET_CC)" LD="$(TARGET_CROSS)ld" ARCH=$(ARCH) \ DESTDIR="$(PKG_INSTALL_DIR)" \ all install endef diff --git a/net/aiccu/Makefile b/net/aiccu/Makefile index 34e87c833..98d6ef2d6 100644 --- a/net/aiccu/Makefile +++ b/net/aiccu/Makefile @@ -37,7 +37,7 @@ define Build/Compile rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" DEBUG=0 + CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" DEBUG=0 endef define Package/aiccu/install diff --git a/net/autossh/Makefile b/net/autossh/Makefile index e3905bf98..391eca7c8 100644 --- a/net/autossh/Makefile +++ b/net/autossh/Makefile @@ -38,7 +38,7 @@ define Build/Compile rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"$(SSH)\\\"\" -D\"VER=\\\"$(PKG_VERSION)\\\"\"" \ + CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"$(SSH)\\\"\" -D\"VER=\\\"$(PKG_VERSION)\\\"\"" \ BINDIR=/usr/bin MANDIR=/usr/man endef diff --git a/net/dhcp6/Makefile b/net/dhcp6/Makefile index d6f0f99d4..a7f16bfb0 100755 --- a/net/dhcp6/Makefile +++ b/net/dhcp6/Makefile @@ -58,9 +58,9 @@ endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR)/server \ - CC=$(TARGET_CC) STAGING_DIR=$(STAGING_DIR) + CC="$(TARGET_CC)" STAGING_DIR=$(STAGING_DIR) $(MAKE) -C $(PKG_BUILD_DIR)/client \ - CC=$(TARGET_CC) STAGING_DIR=$(STAGING_DIR) + CC="$(TARGET_CC)" STAGING_DIR=$(STAGING_DIR) endef define Package/dhcp6-server/install diff --git a/net/elhttp/Makefile b/net/elhttp/Makefile index 8c74f9436..b9fcf620a 100644 --- a/net/elhttp/Makefile +++ b/net/elhttp/Makefile @@ -36,7 +36,7 @@ endef define Build/Compile mkdir -p $(PKG_INSTALL_DIR)/usr/sbin - $(MAKE) CC=$(TARGET_CC) CROSS=$(TARGET_CROSS) -C $(PKG_BUILD_DIR) \ + $(MAKE) CC="$(TARGET_CC)" CROSS="$(TARGET_CROSS)" -C "$(PKG_BUILD_DIR)" \ DESTDIR="$(PKG_INSTALL_DIR)" \ all install endef diff --git a/net/elinks/Makefile b/net/elinks/Makefile index 98f989046..519012ec9 100644 --- a/net/elinks/Makefile +++ b/net/elinks/Makefile @@ -59,7 +59,7 @@ endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR)\ - CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld + CC="$(TARGET_CC)" LD="$(TARGET_CROSS)ld" endef define Package/elinks/install diff --git a/net/fping/Makefile b/net/fping/Makefile index 7e14dc54f..8f4902b2b 100644 --- a/net/fping/Makefile +++ b/net/fping/Makefile @@ -40,9 +40,9 @@ $(call Build/Configure/Default) endef define Build/Compile - $(MAKE) -j1 CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR) clean $(PKG_NAME) + $(MAKE) -j1 CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR) clean $(PKG_NAME) mv $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME)4 - $(MAKE) -j1 CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) -DIPV6=1" -C $(PKG_BUILD_DIR) clean $(PKG_NAME) + $(MAKE) -j1 CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -DIPV6=1" -C $(PKG_BUILD_DIR) clean $(PKG_NAME) mv $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME)6 endef diff --git a/net/httping/Makefile b/net/httping/Makefile index 0f30e96b0..f92015b2e 100644 --- a/net/httping/Makefile +++ b/net/httping/Makefile @@ -34,7 +34,7 @@ endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) -f $(PKG_BUILD_DIR)/Makefile$(SSL_ENABLE) \ - CC=$(TARGET_CC) STAGING_DIR=$(STAGING_DIR) + CC="$(TARGET_CC)" STAGING_DIR=$(STAGING_DIR) endef define Package/httping/install diff --git a/net/oidentd/Makefile b/net/oidentd/Makefile index 41e90e3bc..3a0d0b258 100755 --- a/net/oidentd/Makefile +++ b/net/oidentd/Makefile @@ -40,7 +40,7 @@ define Build/Compile rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) + CC="$(TARGET_CC)" $(STRIP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) endef diff --git a/net/pptpd/Makefile b/net/pptpd/Makefile index 8f07f0db0..176650997 100755 --- a/net/pptpd/Makefile +++ b/net/pptpd/Makefile @@ -64,7 +64,7 @@ define Build/Compile rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) \ + CC="$(TARGET_CC)" \ CFLAGS="$(TARGET_CFLAGS) -DSBINDIR=\\\"/usr/sbin\\\"" \ DESTDIR="$(PKG_INSTALL_DIR)" \ INSTALL="install" \ diff --git a/net/tcpdump/Makefile b/net/tcpdump/Makefile index 3776d6368..017d33e31 100644 --- a/net/tcpdump/Makefile +++ b/net/tcpdump/Makefile @@ -36,7 +36,7 @@ endef define Build/Configure (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \ - BUILD_CC=$(TARGET_CC) HOSTCC=$(HOSTCC) \ + BUILD_CC="$(TARGET_CC)" HOSTCC="$(HOSTCC)" \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ diff --git a/net/wpa_supplicant/Makefile b/net/wpa_supplicant/Makefile index 8e886322c..678d7af2d 100755 --- a/net/wpa_supplicant/Makefile +++ b/net/wpa_supplicant/Makefile @@ -49,7 +49,7 @@ define Build/Compile rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) \ + CC="$(TARGET_CC)" \ KERNEL=$(LINUX_DIR) \ CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ LDFLAGS=" -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ diff --git a/net/yafc/Makefile b/net/yafc/Makefile index ebdada4a0..4fa243d0e 100644 --- a/net/yafc/Makefile +++ b/net/yafc/Makefile @@ -39,7 +39,7 @@ define Build/Compile rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) + CC="$(TARGET_CC)" endef define Package/yafc/install diff --git a/utils/bc/Makefile b/utils/bc/Makefile index 3c36a22cd..8613c68f6 100644 --- a/utils/bc/Makefile +++ b/utils/bc/Makefile @@ -47,7 +47,7 @@ define Build/Compile rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) + CC="$(TARGET_CC)" endef define Package/bc/install diff --git a/utils/gnupg/Makefile b/utils/gnupg/Makefile index 8bf46c48b..4ea1dc2f4 100644 --- a/utils/gnupg/Makefile +++ b/utils/gnupg/Makefile @@ -78,7 +78,7 @@ endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) + CC="$(TARGET_CC)" endef define Package/gnupg/install diff --git a/utils/hdparm/Makefile b/utils/hdparm/Makefile index 34e0f03ac..36ced2120 100644 --- a/utils/hdparm/Makefile +++ b/utils/hdparm/Makefile @@ -38,7 +38,7 @@ endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) + CC="$(TARGET_CC)" endef define Package/hdparm/install diff --git a/utils/heyu/Makefile b/utils/heyu/Makefile index e93eca2c7..37d528d8b 100644 --- a/utils/heyu/Makefile +++ b/utils/heyu/Makefile @@ -33,7 +33,7 @@ endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \ + CC="$(TARGET_CC)" LD="$(TARGET_CROSS)ld" \ CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR) -DSYSV -DPOSIX -DHAS_ITIMER -DLINUX -DHASSELECT -DHASTZ" endef diff --git a/utils/lcd4linux/Makefile b/utils/lcd4linux/Makefile index 8c072b30a..5eb9e15d8 100644 --- a/utils/lcd4linux/Makefile +++ b/utils/lcd4linux/Makefile @@ -66,7 +66,7 @@ endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \ + CC="$(TARGET_CC)" LD="$(TARGET_CROSS)ld" \ CFLAGS="$(TARGET_CFLAGS) -Wall" endef diff --git a/utils/microcom/Makefile b/utils/microcom/Makefile index c75cf67f0..ab2186535 100644 --- a/utils/microcom/Makefile +++ b/utils/microcom/Makefile @@ -43,7 +43,7 @@ define Build/Configure endef define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) CC=$(TARGET_CC) + $(MAKE) -C $(PKG_BUILD_DIR) CC="$(TARGET_CC)" endef define Package/microcom/install diff --git a/utils/pciutils/Makefile b/utils/pciutils/Makefile index fb3add22b..7b12360c0 100644 --- a/utils/pciutils/Makefile +++ b/utils/pciutils/Makefile @@ -38,7 +38,7 @@ endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" IDSDIR="/usr/share" HOST=$(GNU_TARGET_NAME) + CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" IDSDIR="/usr/share" HOST=$(GNU_TARGET_NAME) endef define Package/pciutils/install diff --git a/utils/strace/Makefile b/utils/strace/Makefile index 02a1b51c6..9c297fdac 100644 --- a/utils/strace/Makefile +++ b/utils/strace/Makefile @@ -62,7 +62,7 @@ endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) + CC="$(TARGET_CC)" endef define Package/strace/install -- 2.11.0