Patch from Lauri Leukkunen:
authorEric Andersen <andersen@codepoet.org>
Fri, 27 Feb 2004 19:24:22 +0000 (19:24 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 27 Feb 2004 19:24:22 +0000 (19:24 -0000)
Control the HOSTCC for the uclibc configuration procedure

make/uclibc.mk

index ebe90591dd7c11a2b5b258997f68b144418fe09a..22db813413b5c7f43baf49c01ead119edeb86647 100644 (file)
@@ -80,6 +80,7 @@ endif
                PREFIX=$(TOOL_BUILD_DIR)/uClibc_dev/ \
                DEVEL_PREFIX=/usr/ \
                RUNTIME_PREFIX=$(TOOL_BUILD_DIR)/uClibc_dev/ \
+               HOSTCC="$(HOSTCC)" \
                pregen install_dev;
        touch $(UCLIBC_DIR)/.configured
 
@@ -88,6 +89,7 @@ $(UCLIBC_DIR)/lib/libc.a: $(UCLIBC_DIR)/.configured $(LIBFLOAT_TARGET)
                PREFIX= \
                DEVEL_PREFIX=$(REAL_GNU_TARGET_NAME)/ \
                RUNTIME_PREFIX=/ \
+               HOSTCC="$(HOSTCC)" \
                all
 
 $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libc.a: $(UCLIBC_DIR)/lib/libc.a
@@ -103,6 +105,7 @@ $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libc.a: $(UCLIBC_DIR)/lib/libc.a
                install_dev
        $(MAKE) -C $(UCLIBC_DIR) \
                PREFIX=$(STAGING_DIR) \
+               HOSTCC="$(HOSTCC)" \
                utils install_utils
        # Clean up the host compiled utils...
        $(MAKE) -C $(UCLIBC_DIR)/utils clean