From 6823cce904df185cb0073a3e9fa7caef0401a86e Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 15 Dec 2004 15:14:05 +0000 Subject: [PATCH] A couple of SCO compilation patches Subject: [perl #3097] Re: SCO5 XS dyn loading fails From: "Ilya N. Golubev" Date: Tue, 14 Dec 2004 22:37:27 +0300 Message-ID: <028941bf40f648-gin@mo.msk.ru> Subject: Re: [perl #3100] NaN passed to gcvt [PATCH] From: Andy Dougherty Date: Wed, 15 Dec 2004 10:29:22 -0500 (EST) Message-ID: p4raw-id: //depot/perl@23655 --- hints/sco.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hints/sco.sh b/hints/sco.sh index 1d1d5c2788..8774aee82d 100644 --- a/hints/sco.sh +++ b/hints/sco.sh @@ -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' ;; @@ -200,6 +200,15 @@ if test -f /usr/lib/libdbm.nfs.a ; then 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. -- 2.34.1