pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/udunits Fix a case where gcc3.3 is too clever for...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/deb7305713a7
branches:  trunk
changeset: 467508:deb7305713a7
user:      kristerw <kristerw%pkgsrc.org@localhost>
date:      Mon Feb 02 03:19:25 2004 +0000

description:
Fix a case where gcc3.3 is too clever for autoconf.

configure tries to determine if -lm is needed by compiling

   int main() {
   (void)sin(0.0);
   ; return 0; }

and see if linking fails.  But gcc3.3 optimizes that to just "return 0;"

diffstat:

 math/udunits/distinfo         |   3 ++-
 math/udunits/patches/patch-ac |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r 4ee7ff81a4f1 -r deb7305713a7 math/udunits/distinfo
--- a/math/udunits/distinfo     Mon Feb 02 01:37:09 2004 +0000
+++ b/math/udunits/distinfo     Mon Feb 02 03:19:25 2004 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2004/01/24 02:01:53 kristerw Exp $
+$NetBSD: distinfo,v 1.7 2004/02/02 03:19:25 kristerw Exp $
 
 SHA1 (udunits-1.12.1/udunits.tar.Z) = ee37ca61eb1dcf34165b7573cc1645824bd6968d
 Size (udunits-1.12.1/udunits.tar.Z) = 365873 bytes
 SHA1 (patch-aa) = 0998141196898a7bc168fe45c5019586645167f2
 SHA1 (patch-ab) = 9a98e048499d38f8dedba6fb1a169e178dbd77ba
+SHA1 (patch-ac) = 508fafdc724f9b95543dd16c2bd2f0242eb892a8
diff -r 4ee7ff81a4f1 -r deb7305713a7 math/udunits/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/udunits/patches/patch-ac     Mon Feb 02 03:19:25 2004 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.1 2004/02/02 03:19:25 kristerw Exp $
+
+--- configure.orig     2004-02-02 04:09:56.000000000 +0100
++++ configure  2004-02-02 04:11:44.000000000 +0100
+@@ -2095,7 +2095,7 @@
+ #include "confdefs.h"
+ 
+ int main() {
+-(void)sin(0.0);
++return sin(0.0);
+ ; return 0; }
+ EOF
+ if { (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+@@ -2142,7 +2142,7 @@
+ #include "confdefs.h"
+ 
+ int main() {
+-(void)sin(0.0);
++return sin(0.0);
+ ; return 0; }
+ EOF
+ if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then



Home | Main Index | Thread Index | Old Index