diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-09-11 19:15:49 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-09-11 19:15:49 +0000 |
commit | 4efc1eee4d8f380347a5845e87ba9dd80e18d624 (patch) | |
tree | ce0b3223e0456a20e9ec097f60f69dac8036b96b | |
parent | f329f1085ffdb91bd1358cd4d2e74b312ea41b72 (diff) | |
download | perl-4efc1eee4d8f380347a5845e87ba9dd80e18d624.tar.gz |
Integrate the recent hintfile changes from bleadperl
p4raw-id: //depot/maint-5.6/perl-5.6.2@21185
-rw-r--r-- | hints/aix.sh | 2 | ||||
-rw-r--r-- | hints/freebsd.sh | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/hints/aix.sh b/hints/aix.sh index 04eba5237f..bf1667bd4f 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -142,7 +142,7 @@ case "$cc" in ccdlflags='-Xlinker' if [ "X$gccversion" = "X" ]; then # Done too late in Configure if hinted - gccversion=`$cc --version | sed 's/.*(GCC) *//` + gccversion=`$cc --version | sed 's/.*(GCC) *//'` fi ;; *) ccversion=`lslpp -L | grep 'C for AIX Compiler$' | grep -v '\.msg\.[A-Za-z_]*\.' | awk '{print $1,$2}'` diff --git a/hints/freebsd.sh b/hints/freebsd.sh index 0a74e6e4b8..7e75ddd524 100644 --- a/hints/freebsd.sh +++ b/hints/freebsd.sh @@ -222,16 +222,20 @@ Consider using the latest STABLE release. EOM exit 1 fi - ldflags="-pthread $ldflags" case "$osvers" in # Both in 4.x and 5.x gethostbyaddr_r exists but # it is "Temporary function, not threadsafe"... 4.*) d_gethostbyaddr_r="undef" d_gethostbyaddr_r_proto="0" + ldflags="-pthread $ldflags" ;; 5.*) d_gethostbyaddr_r="undef" d_gethostbyaddr_r_proto="0" - + if [ `/sbin/sysctl -n kern.osreldate` -lt 500016 ]; then + ldflags="-pthread $ldflags" + fi + ;; + *) ldflags="-pthread $ldflags" ;; esac ;; |