X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/e723fc210bf7b2ed9b8950c6c95284222cd1cfe2..b2b23189a6e87ef8e3bbd5dfc9cc93945580dd22:/hints/solaris_2.sh diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 8450cda..bf2f195 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 +# Based on input from lots of folks, especially +# Dean Roehrich + +# 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 +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 '') @@ -345,13 +379,13 @@ case "$uselargefiles" in ''|$define|true|[yY]*) # Keep these in the left margin. -ccflags_largefiles="`getconf LFS_CFLAGS 2>/dev/null`" -ldflags_largefiles="`getconf LFS_LDFLAGS 2>/dev/null`" -libswanted_largefiles="`getconf LFS_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`" +ccflags_uselargefiles="`getconf LFS_CFLAGS 2>/dev/null`" +ldflags_uselargefiles="`getconf LFS_LDFLAGS 2>/dev/null`" +libswanted_uselargefiles="`getconf LFS_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`" - ccflags="$ccflags $ccflags_largefiles" - ldflags="$ldflags $ldflags_largefiles" - libswanted="$libswanted $libswanted_largefiles" + ccflags="$ccflags $ccflags_uselargefiles" + ldflags="$ldflags $ldflags_uselargefiles" + libswanted="$libswanted $libswanted_uselargefiles" ;; esac EOCBU