From: Rafael Garcia-Suarez Date: Wed, 15 Dec 2004 15:14:05 +0000 (+0000) Subject: A couple of SCO compilation patches X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6823cce904df185cb0073a3e9fa7caef0401a86e;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/hints/sco.sh b/hints/sco.sh index 1d1d5c2..8774aee 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' ;; @@ -201,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