Skip to contentSkip to conversation

Use $(CC) in check for egcs/gcc3 [2/4]

PATCH Applied Joshua Kwan 2 participants 3 messages May 6, 2004 – May 7, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use $(CC) in check for egcs/gcc3 [2/4]

patch 2: use $(CC) in check for egcs/gcc3

The makefile currentsly hardcodes 'gcc' in its test. This is not good if 'gcc' points to an i386-linux-gcc :)

(The patch explains itself. However, note that it doesn't address)

Signature · 1 line
Joshua Kwan
arch/sparc64/Makefile~ renamed from arch/sparc64/Makefile +1 -1
@@ -12,7 +12,7 @@
 # line...
 SHELL  =/bin/bash
 
-CC		:= $(shell if gcc -m64 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo gcc; else echo sparc64-linux-gcc; fi )
+CC		:= $(shell if $(CC) -m64 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo $(CC); else echo sparc64-linux-gcc; fi )
 
 NEW_GCC := $(shell if $(CC) -m64 -mcmodel=medlow -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo y; else echo n; fi; )
 NEW_GAS := $(shell if $(LD) -V 2>&1 | grep 'elf64_sparc' > /dev/null; then echo y; else echo n; fi)
#1 lore raw
Quoted 1 line · Joshua Kwan

(The patch explains itself. However, note that it doesn't address)

I was going to complete that unfinished thought, but after further consideration, that last sentence should have been erased.

</major list flood>

Signature · 1 line
Joshua Kwan