Check for cc masquerading as gcc or clang in configure.
This commit is contained in:
parent
1a1e8da703
commit
e9a52aa129
10
configure
vendored
10
configure
vendored
@ -167,8 +167,14 @@ extern int getchar();
|
|||||||
int hello() {return getchar();}
|
int hello() {return getchar();}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
test -z "$CC" && echo Checking for ${CROSS_PREFIX}gcc... | tee -a configure.log
|
if test -z "$CC"; then
|
||||||
cc=${CC-${CROSS_PREFIX}gcc}
|
echo Checking for ${CROSS_PREFIX}gcc... | tee -a configure.log
|
||||||
|
if ${CROSS_PREFIX}gcc -v >/dev/null 2>&1; then
|
||||||
|
cc=${CROSS_PREFIX}gcc
|
||||||
|
else
|
||||||
|
cc=${CROSS_PREFIX}cc
|
||||||
|
fi
|
||||||
|
fi
|
||||||
cflags=${CFLAGS-"-O3"}
|
cflags=${CFLAGS-"-O3"}
|
||||||
# to force the asm version use: CFLAGS="-O3 -DASMV" ./configure
|
# to force the asm version use: CFLAGS="-O3 -DASMV" ./configure
|
||||||
case "$cc" in
|
case "$cc" in
|
||||||
|
Loading…
Reference in New Issue
Block a user