summaryrefslogtreecommitdiff
path: root/hints/solaris_2.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-02-28 21:50:28 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-02-28 21:50:28 +0000
commit4c07fe1d9f6731adc6b9f1b87137723814165394 (patch)
treea6e1438a0a2966351e1595a5bb0132b1eb95327a /hints/solaris_2.sh
parent972b05a9f47fc720f21b99b988037565a6a8181a (diff)
downloadperl-4c07fe1d9f6731adc6b9f1b87137723814165394.tar.gz
Don't be overeager to turn on 64-bitallness.
p4raw-id: //depot/cfgperl@5330
Diffstat (limited to 'hints/solaris_2.sh')
-rw-r--r--hints/solaris_2.sh21
1 files changed, 18 insertions, 3 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index d1d2e02c05..3065f6aa7a 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -365,11 +365,25 @@ EOM
esac
EOCBU
+# This script UU/use64bitint.cbu will get 'called-back' by Configure
+# after it has prompted the user for whether to use 64 bits.
+cat > UU/use64bitint.cbu <<'EOCBU'
case "$use64bitall" in
$define|true|[yY]*)
- ccflags="$ccflags `getconf XBS5_LP64_OFF64_CFLAGS`"
- ldflags="$ccflags `getconf XBS5_LP64_OFF64_LDFLAGS`"
- lddlflags="$lddlflags -G `getconf XBS5_LP64_OFF64_LDFLAGS`"
+ case "$cc -v 2>/dev/null" in
+ *gcc*)
+ # I don't know what are the flags to get gcc sparcv9-aware,
+ # I'm just guessing. --jhi
+ ccflags="$ccflags -mv9"
+ ldflags="$ccflags -mv9"
+ lddlflags="$lddlflags -G -mv9"
+ ;;
+ *)
+ ccflags="$ccflags `getconf XBS5_LP64_OFF64_CFLAGS`"
+ ldflags="$ccflags `getconf XBS5_LP64_OFF64_LDFLAGS`"
+ lddlflags="$lddlflags -G `getconf XBS5_LP64_OFF64_LDFLAGS`"
+ ;;
+ esac
loclibpth="$loclibpth /usr/lib/sparcv9"
libscheck='case "`/usr/bin/file $xxx`" in
*64-bit*|*SPARCV9*) ;;
@@ -377,6 +391,7 @@ $define|true|[yY]*)
esac'
;;
esac
+EOCBU
# This is just a trick to include some useful notes.
cat > /dev/null <<'End_of_Solaris_Notes'