From 9b119d5a443153d58c9d4caad4b23fab7c13227e Mon Sep 17 00:00:00 2001 From: Robin Barker Date: Wed, 1 Mar 2000 17:59:36 +0000 Subject: [PATCH] solaris 64-bit and gcc To: perl5-porters@perl.org Message-Id: <200003011759.RAA03938@tempest.npl.co.uk> p4raw-id: //depot/cfgperl@5410 --- hints/solaris_2.sh | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 954af6a..2599fe1 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -370,7 +370,7 @@ case "$use64bitall" in "$define"|true|[yY]*) libc='/usr/lib/sparcv9/libc.so' if test ! -f $libc; then - cat <&4 </dev/null" in *gcc*) - # I don't know what are the flags to make gcc sparcv9-aware, - # I'm just guessing. --jhi - ccflags="$ccflags -mv9" - ldflags="$ldflags -mv9" - lddlflags="$lddlflags -G -mv9" + echo 'main() { return 0; }' > try.c + if ${cc:-cc} -mcpu=v9 -m64 -S try.c 2>&1 | grep -e \ + '-m64 is not supported by this configuration'; then + cat >&4 </dev/null` != X; then + ccflags="$ccflags -Wa,`getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`" + fi + # no changes to ld flags, as (according to man ld): + # + # There is no specific option that tells ld to link 64-bit + # objects; the class of the first object that gets processed + # by ld determines whether it is to perform a 32-bit or a + # 64-bit link edit. ;; *) ccflags="$ccflags `getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`" -- 2.7.4