- quote HOST_CC.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 10 Mar 2006 08:30:15 +0000 (08:30 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 10 Mar 2006 08:30:15 +0000 (08:30 -0000)
  Allows for passing flags along HOST_CC which is sometimes needed on certain
  architectures.

12 files changed:
package/bash/bash.mk
package/cvs/cvs.mk
package/distcc/distcc.mk
package/nano/nano.mk
package/ncurses/ncurses.mk
package/qte/qte.mk
package/readline/readline.mk
package/rsync/rsync.mk
package/wget/wget.mk
package/which/which.mk
toolchain/ccache/ccache.mk
toolchain/sstrip/sstrip.mk

index e97371833c746b32eae03bd13dd955531e47adbf..71dbbc6deebbd9020418ced4b520cc678a9ebb49 100644 (file)
@@ -28,7 +28,7 @@ $(BASH_DIR)/.configured: $(BASH_DIR)/.unpacked
        #               ac_cv_func_setvbuf_reversed=no
        #               bash_cv_have_mbstate_t=yes
        (cd $(BASH_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
@@ -53,7 +53,7 @@ $(BASH_DIR)/.configured: $(BASH_DIR)/.unpacked
        touch $(BASH_DIR)/.configured
 
 $(BASH_DIR)/$(BASH_BINARY): $(BASH_DIR)/.configured
-       $(MAKE) CC=$(TARGET_CC) CC_FOR_BUILD=$(HOSTCC) -C $(BASH_DIR)
+       $(MAKE) CC=$(TARGET_CC) CC_FOR_BUILD="$(HOSTCC)" -C $(BASH_DIR)
 
 $(TARGET_DIR)/$(BASH_TARGET_BINARY): $(BASH_DIR)/$(BASH_BINARY)
        $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BASH_DIR) install
index e31d95d046d9a278bd7eb9caa00ea69bdd3dd3b9..6f4c104bf970befc0d3b1a57f7d4cb9a5ec954fc 100644 (file)
@@ -20,7 +20,7 @@ $(CVS_DIR)/.unpacked: $(DL_DIR)/$(CVS_SOURCE)
 
 $(CVS_DIR)/.configured: $(CVS_DIR)/.unpacked
        (cd $(CVS_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
                CFLAGS="$(TARGET_CFLAGS)" \
                cvs_cv_func_printf_ptr=yes \
                ./configure \
index 0c24de9091b52a74cc2d5f19ad1b5eb7edb558fb..c9b2fe1601bd1ff5e28214b74ed2a704346d68ba 100644 (file)
@@ -19,7 +19,7 @@ $(DISTCC_DIR)/.unpacked: $(DL_DIR)/$(DISTCC_SOURCE)
 
 $(DISTCC_DIR)/.configured: $(DISTCC_DIR)/.unpacked
        (cd $(DISTCC_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
index e774bfe0d86b7ad9c2122ab354ea7a2b927b3ffe..f3ec43cf6651ca732d788524d66923cc77fb4dd9 100644 (file)
@@ -20,7 +20,7 @@ $(NANO_DIR)/.unpacked: $(DL_DIR)/$(NANO_SOURCE)
 
 $(NANO_DIR)/.configured: $(NANO_DIR)/.unpacked
        (cd $(NANO_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
                CFLAGS="$(TARGET_CFLAGS)" \
                ac_cv_header_regex_h=no \
                ./configure \
index 0081787f0fc23e82bce4a20ae59a7fb3351cccef..980db49dba8da5278d56a9e206107dec321cd579 100644 (file)
@@ -42,7 +42,7 @@ $(NCURSES_DIR)/.dist: $(DL_DIR)/$(NCURSES_SOURCE)
 
 $(NCURSES_DIR)/.configured: $(NCURSES_DIR)/.dist
        (cd $(NCURSES_DIR); rm -rf config.cache; \
-               BUILD_CC=$(HOSTCC) \
+               BUILD_CC="$(HOSTCC)" \
                $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
index ff964796ab6ac4ea31ff9121a9eac63d92dde079..297afbc04775b23a087837488b55da5fee205774 100644 (file)
@@ -136,7 +136,7 @@ $(QTE_QTOPIA_DIR)/.unpacked: $(DL_DIR)/$(QTE_QTOPIA_SOURCE)
 $(QTE_QTE_DIR)/.configured: $(QTE_QTE_DIR)/.unpacked $(QTE_TMAKE_DIR)/.unpacked $(QTE_QTE_DIR)/$(QTE_UIC_BINARY) $(QTE_QTE_DIR)/$(QTE_QVFB_BINARY) $(QTE_QTOPIA_DIR)/.unpacked
        cp $(QTE_QTOPIA_DIR)/src/qt/qconfig-qpe.h $(QTE_QTE_DIR)/src/tools/
        (cd $(@D); export QTDIR=`pwd`; export TMAKEPATH=$(QTE_TMAKE_DIR)/lib/qws/linux-x86-g++; export PATH=$(STAGING_DIR)/bin:$$QTDIR/bin:$$PATH; export LD_LIBRARY_PATH=$$QTDIR/lib:$$LD_LIBRARY_PATH; echo 'yes' | \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                $(QTE_QTE_CONFIGURE) -qconfig qpe -keypad-mode -qvfb -depths 4,8,16,32 -xplatform $(BR2_QTE_CROSS_PLATFORM) \
@@ -147,7 +147,7 @@ ifneq ($(BR2_QTE_C_QTE_VERSION),$(BR2_QTE_C_QT3_VERSION))
 # this is a host-side build, so we don't use any staging dir stuff, nor any TARGET_CONFIGURE_OPTS
 $(QTE_QT3_DIR)/.configured: $(QTE_QT3_DIR)/.unpacked $(QTE_TMAKE_DIR)/.unpacked
        (cd $(@D); export QTDIR=`pwd`; export TMAKEPATH=$(QTE_TMAKE_DIR)/lib/qws/linux-x86-g++; export PATH=$$QTDIR/bin:$$PATH; export LD_LIBRARY_PATH=$$QTDIR/lib:$$LD_LIBRARY_PATH; echo 'yes' | \
-               CC_FOR_BUILD=$(HOSTCC) \
+               CC_FOR_BUILD="$(HOSTCC)" \
                ./configure \
                -fast $(QTE_QT3_CONFIGURE) \
        );
@@ -156,7 +156,7 @@ endif
 
 $(QTE_QVFB_DIR)/.configured: $(QTE_QVFB_DIR)/.unpacked $(QTE_TMAKE_DIR)/.unpacked
        (cd $(@D); export QTDIR=`pwd`; export TMAKEPATH=$(QTE_TMAKE_DIR)/lib/linux-g++; export $$QTDIR/bin:$$PATH; export LD_LIBRARY_PATH=$$QTDIR/lib:$$LD_LIBRARY_PATH; echo 'yes' | \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                $(QTE_QVFB_CONFIGURE) \
@@ -171,7 +171,7 @@ $(QTE_QVFB_DIR)/.configured: $(QTE_QVFB_DIR)/.unpacked $(QTE_TMAKE_DIR)/.unpacke
 
 $(QTE_QTOPIA_DIR)/.configured: $(QTE_QTOPIA_DIR)/.unpacked $(QTE_TMAKE_DIR)/.unpacked $(QTE_QTE_DIR)/$(QTE_UIC_BINARY) $(QTE_QTE_DIR)/$(QTE_QVFB_BINARY) $(QTE_QT3_DIR)/.configured
        (cd $(@D); export QTDIR=$(QTE_QTE_DIR); export QPEDIR=$(QTE_QTOPIA_DIR); export PATH=$(STAGING_DIR)/bin:$$QTDIR/bin:$$PATH; QT3DIR=$(QTE_QTE_DIR); echo 'yes' | \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                $(QTE_QTOPIA_CONFIGURE) --edition phone -no-qtopiadesktop -dqt $(QTE_QT3_DIR) -arch generic -displaysize 160-240 -languages en_US \
index c4781548b1cc9c11f43ca0a675f49f575ab6f163..1f1f1544b2f604c77d2b812d67e41405adc3f758 100644 (file)
@@ -42,7 +42,7 @@ $(STAGING_DIR)/$(READLINE_TARGET_BINARY): $(READLINE_DIR)/.configured
 
 # Install to Staging area
 $(STAGING_DIR)/include/readline/readline.h: $(READLINE_DIR)/$(READLINE_BINARY)
-       BUILD_CC=$(TARGET_CC) HOSTCC=$(HOSTCC) CC=$(TARGET_CC) \
+       BUILD_CC=$(TARGET_CC) HOSTCC="$(HOSTCC)" CC=$(TARGET_CC) \
         $(MAKE1) \
             prefix=$(STAGING_DIR) \
             exec_prefix=$(STAGING_DIR) \
@@ -62,7 +62,7 @@ $(STAGING_DIR)/include/readline/readline.h: $(READLINE_DIR)/$(READLINE_BINARY)
 
 # Install only run-time to Target directory
 $(TARGET_DIR)/include/readline/readline.h: $(READLINE_DIR)/$(READLINE_BINARY)
-       BUILD_CC=$(TARGET_CC) HOSTCC=$(HOSTCC) CC=$(TARGET_CC) \
+       BUILD_CC=$(TARGET_CC) HOSTCC="$(HOSTCC)" CC=$(TARGET_CC) \
        $(MAKE1) \
             prefix=$(TARGET_DIR) \
             libdir=$(TARGET_DIR)/lib \
index 69d777017e5518efda979ce77db7dae918140a33..c110146e628bff1613a596f00e0ed0b8a494c48e 100644 (file)
@@ -21,7 +21,7 @@ $(RSYNC_DIR)/.unpacked: $(DL_DIR)/$(RSYNC_SOURCE)
 
 $(RSYNC_DIR)/.configured: $(RSYNC_DIR)/.unpacked
        (cd $(RSYNC_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
index 85765c886126b8704369b8393b3f8d8a75d419a8..7655bf765ce09421a981c9acd61e05f5fd150243 100644 (file)
@@ -20,7 +20,7 @@ $(WGET_DIR)/.unpacked: $(DL_DIR)/$(WGET_SOURCE)
 
 $(WGET_DIR)/.configured: $(WGET_DIR)/.unpacked
        (cd $(WGET_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
index 5cb05766c0287e351e0586aafeb79652914b1d65..1beab7bee4e5c6cc49fd8f0287e62da407922698 100644 (file)
@@ -20,7 +20,7 @@ $(WHICH_DIR)/.unpacked: $(DL_DIR)/$(WHICH_SOURCE)
 
 $(WHICH_DIR)/.configured: $(WHICH_DIR)/.unpacked
        (cd $(WHICH_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
index 5a49b029bddffa005b24f4dd901715e4d3f06b6c..9329b215012d530776217f6177ce33abc6be4a76 100644 (file)
@@ -33,7 +33,7 @@ $(CCACHE_DIR1)/.patched: $(CCACHE_DIR1)/.unpacked
 $(CCACHE_DIR1)/.configured: $(CCACHE_DIR1)/.patched
        mkdir -p $(CCACHE_DIR1)
        (cd $(CCACHE_DIR1); rm -rf config.cache; \
-               CC=$(HOSTCC) \
+               CC="$(HOSTCC)" \
                $(CCACHE_DIR1)/configure \
                --target=$(GNU_HOST_NAME) \
                --host=$(GNU_HOST_NAME) \
@@ -43,7 +43,7 @@ $(CCACHE_DIR1)/.configured: $(CCACHE_DIR1)/.patched
        touch $(CCACHE_DIR1)/.configured
 
 $(CCACHE_DIR1)/$(CCACHE_BINARY): $(CCACHE_DIR1)/.configured
-       $(MAKE) CC=$(HOSTCC) -C $(CCACHE_DIR1)
+       $(MAKE) CC="$(HOSTCC)" -C $(CCACHE_DIR1)
 
 $(STAGING_DIR)/$(CCACHE_TARGET_BINARY): $(CCACHE_DIR1)/$(CCACHE_BINARY)
        mkdir -p $(STAGING_DIR)/usr/bin;
index d18853118f7f78e5c8a1265ee56815819fa3df9a..e538bdb9a9556d4050e37af0feb474d5a0c8475a 100644 (file)
@@ -19,7 +19,7 @@ $(SSTRIP_HOST): $(SSTRIP_SOURCE_FILE)
                $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/sstrip
        ln -snf $(REAL_GNU_TARGET_NAME)-sstrip \
                $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-sstrip
-       $(HOSTCC) $(SSTRIP_SOURCE_FILE) -o $(SSTRIP_HOST)
+       "$(HOSTCC)" $(SSTRIP_SOURCE_FILE) -o $(SSTRIP_HOST)
 
 sstrip_host: $(SSTRIP_HOST)