X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fsco.sh;h=18ccc5e6fb54c536b9962164198293599d9b97e7;hb=4e73d6a402bc493d66d19c409c41e1e271c6450b;hp=1c70a4d5409d5b22ad4e4009c5e973adf015ee31;hpb=c529f79d594c53d3968d464c57ac24a21137dd09;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/sco.sh b/hints/sco.sh index 1c70a4d..18ccc5e 100644 --- a/hints/sco.sh +++ b/hints/sco.sh @@ -112,7 +112,7 @@ then else ############################################################### # Need this in release 5 because of changed fpu exeption rules - ccflags="$ccflags -D PERL_SCO5" + ccflags="$ccflags -D HAS_FPSETMASK" ############################################################### # In Release 5, always compile ELF objects @@ -148,7 +148,7 @@ else lddlflags='-G -L/usr/local/lib' ;; *) - ccdlflags='-Bexport -L/usr/local/lib' + ccdlflags='-Wl,-Bexport -L/usr/local/lib' cccdlflags='-Kpic' lddlflags='-G -L/usr/local/lib' ;; @@ -181,6 +181,13 @@ shift libswanted="$*" ############################################################### +# Remove libbind because it conflicts with libsocket. +libswanted=`echo " $libswanted " | sed -e 's/ bind / /'` +set X $libswanted +shift +libswanted="$*" + +############################################################### # Try to use libintl.a since it has strcoll and strxfrm libswanted="intl $libswanted" @@ -194,6 +201,15 @@ if test -f /usr/lib/libdbm.nfs.a ; then fi ############################################################### +# At least for ORS5.0.2, prefer sprintf() over gcvt(), since gcvt() +# used to cause a SIGFPE and a core dump when passed a NaN. +# This may not be an issue in perl-5.8.x and later since we +# try to trap SIGFPE. However, preferring sprintf() should be +# safe anyway, so let's go ahead and set it. See the bugs database +# item [perl #3100]. --A.D. 12/2004. + gconvert_preference='sprintf' + +############################################################### # We disable ODBM_File if OSR5 because it's mostly broken # but keep it for ODT3 as it seems to work. if test "$scorls" = "5"; then @@ -228,7 +244,6 @@ nm_opt='-p' ############################################################### # Perl 5.003_05 and later try to include both and # in pp_sys.c, but that fails due to a redefinition of struct timeval. -# This will generate a WHOA THERE. Accept the default. i_sysselct=$undef