diff options
Diffstat (limited to 'hints')
-rw-r--r-- | hints/solaris_2.sh | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 8f0c3e6fbb..cb3c1a0a2f 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -571,9 +571,21 @@ EOM lddlflags="$lddlflags -G -m64" ;; *) - ccflags="$ccflags `getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`" - ldflags="$ldflags `getconf XBS5_LP64_OFF64_LDFLAGS 2>/dev/null`" - lddlflags="$lddlflags -G `getconf XBS5_LP64_OFF64_LDFLAGS 2>/dev/null`" + getconfccflags="`getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`" + getconfldflags="`getconf XBS5_LP64_OFF64_LDFLAGS 2>/dev/null`" + getconflddlflags="`getconf XBS5_LP64_OFF64_LDFLAGS 2>/dev/null`" + echo "int main() { return(0); } " > try.c + case "`${cc:-cc} $getconfccflags try.c 2>&1 | grep 'deprecated'`" in + *" -xarch=generic64 is deprecated, use -m64 "*) + getconfccflags=`echo $getconfccflags | sed -e 's/xarch=generic64/m64/'` + getconfldflags=`echo $getconfldflags | sed -e 's/xarch=generic64/m64/'` + getconflddlflags=`echo $getconfldllflags | sed -e 's/xarch=generic64/m64/'` + ;; + esac + ccflags="$ccflags $getconfccflags" + ldflags="$ldflags $getconfldflags" + lddlflags="$lddlflags -G $getconflddlflags" + echo "int main() { return(0); } " > try.c tryworkshopcc="${cc:-cc} try.c -o try $ccflags" if test "$processor" = sparc; then |