Change 23655 by [EMAIL PROTECTED] on 2004/12/15 15:14:05

        A couple of SCO compilation patches
        
        Subject: [perl #3097] Re: SCO5 XS dyn loading fails
        From: "Ilya N. Golubev" <[EMAIL PROTECTED]>
        Date: Tue, 14 Dec 2004 22:37:27 +0300
        Message-ID: <[EMAIL PROTECTED]>
        
        Subject: Re: [perl #3100] NaN passed to gcvt [PATCH]
        From: Andy Dougherty <[EMAIL PROTECTED]>
        Date: Wed, 15 Dec 2004 10:29:22 -0500 (EST)
        Message-ID: <[EMAIL PROTECTED]>

Affected files ...

... //depot/perl/hints/sco.sh#14 edit

Differences ...

==== //depot/perl/hints/sco.sh#14 (text) ====
Index: perl/hints/sco.sh
--- perl/hints/sco.sh#13~10888~ Sun Jun 24 06:21:23 2001
+++ perl/hints/sco.sh   Wed Dec 15 07:14:05 2004
@@ -148,7 +148,7 @@
                 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'
             ;;
@@ -199,6 +199,15 @@
     shift
     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
End of Patch.

Reply via email to