In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/b641685a8cdb14c8728fd97660d09571268ec117?hp=6d96b0feee1ce702c05e949e3136496b7de1c253>
- Log ----------------------------------------------------------------- commit b641685a8cdb14c8728fd97660d09571268ec117 Author: Arvan <[email protected]> Date: Wed Mar 9 11:35:48 2011 -0800 [perl #85738] cc deprecated option warnings on solaris 10 sparc 64-bit When building on Solaris 10 multiple warnings are produced saying: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs This is because the config script hints/solaris_2.sh uses the values returned by getconf which are incorrect for newer versions of Sun's compiler. I believe they are correct for earlier versions, but do not have a system to test this on. This change to solaris_2.sh checks that the compiler produces this warning, and if so updates the flags to the correct values. M hints/solaris_2.sh commit 54e72eecfd995bf46f012038fe57c401a27e7686 Author: Father Chrysostomos <[email protected]> Date: Wed Mar 9 11:34:04 2011 -0800 Add Arvan to AUTHORS M AUTHORS ----------------------------------------------------------------------- Summary of changes: AUTHORS | 1 + hints/solaris_2.sh | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index 88cb5fe..55209d5 100644 --- a/AUTHORS +++ b/AUTHORS @@ -102,6 +102,7 @@ Art Green <[email protected]> Art Haas <[email protected]> Artiom Morozov <[email protected]> Artur Bergman <[email protected]> +Arvan <[email protected]> Ash Berlin <[email protected]> Ask Bjöern Hansen <[email protected]> Audrey Tang <[email protected]> diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 8f0c3e6..cb3c1a0 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 -- Perl5 Master Repository
