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
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'
;;
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"
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
###############################################################
# Perl 5.003_05 and later try to include both <time.h> and <sys/select.h>
# 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