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
This commit is contained in:
mbm 2006-08-04 03:28:27 +00:00
parent fd89890003
commit bb1bf2edb5
26 changed files with 28 additions and 28 deletions

View File

@ -44,7 +44,7 @@ endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) \ CC="$(TARGET_CC)" \
OPT_CFLAGS="$(TARGET_CFLAGS)" OPT_LDFLAGS="" OPT_CFLAGS="$(TARGET_CFLAGS)" OPT_LDFLAGS=""
endef endef

View File

@ -35,7 +35,7 @@ define Build/Compile
mkdir -p $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \
CC=$(TARGET_CC) \ CC="$(TARGET_CC)" \
DESTDIR="$(PKG_INSTALL_DIR)" \ DESTDIR="$(PKG_INSTALL_DIR)" \
libbz2.a libbz2.a
endef endef

View File

@ -62,7 +62,7 @@ define Build/Configure
$(DISABLE_LARGEFILE) \ $(DISABLE_LARGEFILE) \
--enable-shared \ --enable-shared \
--enable-static \ --enable-static \
--with-build-cc=$(HOSTCC) \ --with-build-cc="$(HOSTCC)" \
); );
endef endef

View File

@ -72,7 +72,7 @@ define Build/Compile
rm -rf $(PKG_INSTALL_DIR) rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) -j1 \ $(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)" \ instroot="$(PKG_INSTALL_DIR)" \
all install all install
endef endef

View File

@ -35,7 +35,7 @@ endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) CC="$(TARGET_CC)"
rm -rf $(PKG_INSTALL_DIR) rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \

View File

@ -66,7 +66,7 @@ define Build/Compile
rm -rf $(PKG_INSTALL_DIR) rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) -j1 \ $(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)" \ DESTDIR="$(PKG_INSTALL_DIR)" \
all install all install
endef endef

View File

@ -37,7 +37,7 @@ define Build/Compile
rm -rf $(PKG_INSTALL_DIR) rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_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 endef
define Package/aiccu/install define Package/aiccu/install

View File

@ -38,7 +38,7 @@ define Build/Compile
rm -rf $(PKG_INSTALL_DIR) rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_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 BINDIR=/usr/bin MANDIR=/usr/man
endef endef

View File

@ -58,9 +58,9 @@ endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/server \ $(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 \ $(MAKE) -C $(PKG_BUILD_DIR)/client \
CC=$(TARGET_CC) STAGING_DIR=$(STAGING_DIR) CC="$(TARGET_CC)" STAGING_DIR=$(STAGING_DIR)
endef endef
define Package/dhcp6-server/install define Package/dhcp6-server/install

View File

@ -36,7 +36,7 @@ endef
define Build/Compile define Build/Compile
mkdir -p $(PKG_INSTALL_DIR)/usr/sbin 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)" \ DESTDIR="$(PKG_INSTALL_DIR)" \
all install all install
endef endef

View File

@ -59,7 +59,7 @@ endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)\ $(MAKE) -C $(PKG_BUILD_DIR)\
CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld CC="$(TARGET_CC)" LD="$(TARGET_CROSS)ld"
endef endef
define Package/elinks/install define Package/elinks/install

View File

@ -40,9 +40,9 @@ $(call Build/Configure/Default)
endef endef
define Build/Compile 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 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 mv $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME)6
endef endef

View File

@ -34,7 +34,7 @@ endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) -f $(PKG_BUILD_DIR)/Makefile$(SSL_ENABLE) \ $(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 endef
define Package/httping/install define Package/httping/install

View File

@ -40,7 +40,7 @@ define Build/Compile
rm -rf $(PKG_INSTALL_DIR) rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) CC="$(TARGET_CC)"
$(STRIP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(STRIP) $(PKG_BUILD_DIR)/src/$(PKG_NAME)
endef endef

View File

@ -64,7 +64,7 @@ define Build/Compile
rm -rf $(PKG_INSTALL_DIR) rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) \ CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS) -DSBINDIR=\\\"/usr/sbin\\\"" \ CFLAGS="$(TARGET_CFLAGS) -DSBINDIR=\\\"/usr/sbin\\\"" \
DESTDIR="$(PKG_INSTALL_DIR)" \ DESTDIR="$(PKG_INSTALL_DIR)" \
INSTALL="install" \ INSTALL="install" \

View File

@ -36,7 +36,7 @@ endef
define Build/Configure define Build/Configure
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \ (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
BUILD_CC=$(TARGET_CC) HOSTCC=$(HOSTCC) \ BUILD_CC="$(TARGET_CC)" HOSTCC="$(HOSTCC)" \
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \ CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \

View File

@ -49,7 +49,7 @@ define Build/Compile
rm -rf $(PKG_INSTALL_DIR) rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) \ CC="$(TARGET_CC)" \
KERNEL=$(LINUX_DIR) \ KERNEL=$(LINUX_DIR) \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS=" -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ LDFLAGS=" -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \

View File

@ -39,7 +39,7 @@ define Build/Compile
rm -rf $(PKG_INSTALL_DIR) rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) CC="$(TARGET_CC)"
endef endef
define Package/yafc/install define Package/yafc/install

View File

@ -47,7 +47,7 @@ define Build/Compile
rm -rf $(PKG_INSTALL_DIR) rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) CC="$(TARGET_CC)"
endef endef
define Package/bc/install define Package/bc/install

View File

@ -78,7 +78,7 @@ endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) CC="$(TARGET_CC)"
endef endef
define Package/gnupg/install define Package/gnupg/install

View File

@ -38,7 +38,7 @@ endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) CC="$(TARGET_CC)"
endef endef
define Package/hdparm/install define Package/hdparm/install

View File

@ -33,7 +33,7 @@ endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(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" CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR) -DSYSV -DPOSIX -DHAS_ITIMER -DLINUX -DHASSELECT -DHASTZ"
endef endef

View File

@ -66,7 +66,7 @@ endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \ CC="$(TARGET_CC)" LD="$(TARGET_CROSS)ld" \
CFLAGS="$(TARGET_CFLAGS) -Wall" CFLAGS="$(TARGET_CFLAGS) -Wall"
endef endef

View File

@ -43,7 +43,7 @@ define Build/Configure
endef endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) CC=$(TARGET_CC) $(MAKE) -C $(PKG_BUILD_DIR) CC="$(TARGET_CC)"
endef endef
define Package/microcom/install define Package/microcom/install

View File

@ -38,7 +38,7 @@ endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(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 endef
define Package/pciutils/install define Package/pciutils/install

View File

@ -62,7 +62,7 @@ endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) CC="$(TARGET_CC)"
endef endef
define Package/strace/install define Package/strace/install