summaryrefslogtreecommitdiff
path: root/hints/solaris_2.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-08-30 13:30:13 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-30 13:30:13 +0000
commitbc1ad33168dad61eed9029d25ff2214e8d8845ce (patch)
tree926528ffffb92caf6b2e156b236096d534f52ff2 /hints/solaris_2.sh
parent17725611dd99505f3b20bc2339b4ae48163794e9 (diff)
downloadperl-bc1ad33168dad61eed9029d25ff2214e8d8845ce.tar.gz
Put back the slice accidentally removed by #6907.
p4raw-id: //depot/perl@6911
Diffstat (limited to 'hints/solaris_2.sh')
-rw-r--r--hints/solaris_2.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index 8450cdad2b..f698a502ff 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -1,3 +1,37 @@
+# hints/solaris_2.sh
+# Last modified: Tue Apr 13 13:12:49 EDT 1999
+# Andy Dougherty <doughera@lafayette.edu>
+# Based on input from lots of folks, especially
+# Dean Roehrich <roehrich@ironwood-fddi.cray.com>
+
+# If perl fails tests that involve dynamic loading of extensions, and
+# you are using gcc, be sure that you are NOT using GNU as and ld. One
+# way to do that is to invoke Configure with
+#
+# sh Configure -Dcc='gcc -B/usr/ccs/bin/'
+#
+# (Note that the trailing slash is *required*.)
+# gcc will occasionally emit warnings about "unused prefix", but
+# these ought to be harmless. See below for more details.
+
+# See man vfork.
+usevfork=false
+
+d_suidsafe=define
+
+# Avoid all libraries in /usr/ucblib.
+set `echo $glibpth | sed -e 's@/usr/ucblib@@'`
+glibpth="$*"
+
+# Remove bad libraries. -lucb contains incompatible routines.
+# -lld doesn't do anything useful.
+# -lmalloc can cause a problem with GNU CC & Solaris. Specifically,
+# libmalloc.a may allocate memory that is only 4 byte aligned, but
+# GNU CC on the Sparc assumes that doubles are 8 byte aligned.
+# Thanks to Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>
+set `echo " $libswanted " | sed -e 's@ ld @ @' -e 's@ malloc @ @' -e 's@ ucb @ @'`
+libswanted="$*"
+
# Look for architecture name. We want to suggest a useful default.
case "$archname" in
'')