mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
* configure.in (host==solaris): Pass only the first word of $CC
to /usr/bin/which when checking if we're using /usr/ccs/bin/cc. /usr/ucb/which on Solaris barfs out an error if $CC is set to seomthing like "cc -xcg92" or "gcc -mv8". It is harmless, but it looks bad.
This commit is contained in:
@ -693,7 +693,8 @@ rm -f conftest*
|
||||
# The Solaris /usr/ucb/cc compiler does not appear to work.
|
||||
case "${host}" in
|
||||
sparc-sun-solaris2*)
|
||||
if [ "`/usr/bin/which ${CC-cc}`" = "/usr/ucb/cc" ] ; then
|
||||
CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
|
||||
if [ "`/usr/bin/which $CCBASE`" = "/usr/ucb/cc" ] ; then
|
||||
could_use=
|
||||
[ -d /opt/SUNWspro/bin ] && could_use="/opt/SUNWspro/bin"
|
||||
if [ -d /opt/cygnus/bin ] ; then
|
||||
|
Reference in New Issue
Block a user