This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
This is my patch patch.1m for perl5.001.
[perl5.git] / hints / solaris_2.sh
CommitLineData
a0d0e21e
LW
1usevfork=false
2d_suidsafe=define
a0d0e21e
LW
3set `echo $glibpth | sed -e 's@/usr/ucblib@@'`
4glibpth="$*"
40000a8c
AD
5# Remove bad libraries. -lucb contains incompatible routines.
6# -lld doesn't do anything useful.
7# -lmalloc can cause a problem with GNU CC & Solaris. Specifically,
8# libmalloc.a may allocate memory that is only 4 byte aligned, but
9# GNU CC on the Sparc assumes that doubles are 8 byte aligned.
10# Thanks to Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>
11set `echo " $libswanted " | sed -e 's@ ld @ @' -e 's@ malloc @ @' -e 's@ ucb @ @'`
a0d0e21e
LW
12libswanted="$*"
13
14# Look for architecture name. We want to suggest a useful default
15# for archlib and also warn about possible -x486 flags needed.
16case "$archname" in
17'')
18 if test -f /usr/bin/arch; then
19 archname=`/usr/bin/arch`
20 archname="${archname}-${osname}"
21 elif test -f /usr/ucb/arch; then
22 archname=`/usr/ucb/arch`
23 archname="${archname}-${osname}"
24 fi
25 ;;
26esac
27case "$archname" in
28*86*) echo "For an Intel platform you might need to add -x486 to ccflags" >&4;;
29*) ;;
30esac
31
32case $PATH in
33*/usr/ucb*:/usr/bin:*) cat <<END
34NOTE: Some people have reported problems with /usr/ucb/cc.
35Remove /usr/ucb from your PATH if you have difficulties.
36END
37;;
38esac
40000a8c 39