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:
parent
fd89890003
commit
bb1bf2edb5
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -62,7 +62,7 @@ define Build/Configure
|
||||
$(DISABLE_LARGEFILE) \
|
||||
--enable-shared \
|
||||
--enable-static \
|
||||
--with-build-cc=$(HOSTCC) \
|
||||
--with-build-cc="$(HOSTCC)" \
|
||||
);
|
||||
endef
|
||||
|
||||
|
@ -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
|
||||
|
@ -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) \
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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" \
|
||||
|
@ -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" \
|
||||
|
@ -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" \
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -78,7 +78,7 @@ endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
CC=$(TARGET_CC)
|
||||
CC="$(TARGET_CC)"
|
||||
endef
|
||||
|
||||
define Package/gnupg/install
|
||||
|
@ -38,7 +38,7 @@ endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
CC=$(TARGET_CC)
|
||||
CC="$(TARGET_CC)"
|
||||
endef
|
||||
|
||||
define Package/hdparm/install
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -62,7 +62,7 @@ endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
CC=$(TARGET_CC)
|
||||
CC="$(TARGET_CC)"
|
||||
endef
|
||||
|
||||
define Package/strace/install
|
||||
|
Loading…
x
Reference in New Issue
Block a user