svn commit: trunk/buildroot/toolchain/binutils

Bernhard Fischer rep.nop at aon.at
Tue Mar 14 08:36:14 UTC 2006


On Fri, Mar 10, 2006 at 06:05:22PM -0500, Mike Frysinger wrote:
>On Friday 10 March 2006 03:46, aldot at uclibc.org wrote:
>> Log:
>> - make sure we use the proper CC for building binutils.
>>
>> --- trunk/buildroot/toolchain/binutils/binutils.mk
>> +++ trunk/buildroot/toolchain/binutils/binutils.mk
>> @@ -49,6 +51,7 @@
>>  $(BINUTILS_DIR1)/.configured: $(BINUTILS_DIR)/.patched
>>  	mkdir -p $(BINUTILS_DIR1)
>>  	(cd $(BINUTILS_DIR1); \
>> +		CC="$(HOSTCC)" \
>>  		$(BINUTILS_DIR)/configure \
>>  		--prefix=$(STAGING_DIR) \
>>  		--build=$(GNU_HOST_NAME) \
>
>uhh, why ?  configure is more than smart enough to figure this value out 
>properly

No, it isn't for me. I don't have a "gcc". To reproduce, just
chmod -x $(which gcc); make HOST_CC=gcc-whatever
without this patch and see how it miserably fails to find a (g)cc.

Likewise the setting of TARGET_PATH in package/Makefile.in isn't quite
right, as this prohibits to use a HOSTCC which is in the user's PATH
but is discarded via setting TARGET_PATH in the way it is currently
done.

agree?



More information about the uClibc mailing list