Use $CC and $CPP if provided

Let the user select the compiler he wants to use to compile Factor
by using the supplied $CC and $CPP instead of just discarding them.
If not present, we default to gcc and g++ (the current behaviour).
db4
Thomas Deniau 2009-06-19 16:34:00 +02:00 committed by Thomas Deniau
parent 2f15ac3c8f
commit df6ea31e1c
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
CC = gcc
CPP = g++
CC ?= gcc
CPP ?= g++
AR = ar
LD = ld

View File

@ -97,7 +97,7 @@ set_md5sum() {
set_gcc() {
case $OS in
openbsd) ensure_program_installed egcc; CC=egcc;;
*) CC=gcc;;
*) CC=${CC:=gcc};;
esac
}