summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2004-02-02 03:19:25 +0000
committerkristerw <kristerw@pkgsrc.org>2004-02-02 03:19:25 +0000
commitbee6e474e8f4e876816213c50b5353ec3f0dd5e9 (patch)
tree902058e9cecd2dfd4d9e7786a3bd6682bab96036 /math
parent307e0d601dbc64ed6d4c0d65aa786077b49957db (diff)
downloadpkgsrc-bee6e474e8f4e876816213c50b5353ec3f0dd5e9.tar.gz
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 (limited to 'math')
-rw-r--r--math/udunits/distinfo3
-rw-r--r--math/udunits/patches/patch-ac22
2 files changed, 24 insertions, 1 deletions
diff --git a/math/udunits/distinfo b/math/udunits/distinfo
index c02926810a9..6fd895e7f3a 100644
--- a/math/udunits/distinfo
+++ b/math/udunits/distinfo
@@ -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 --git a/math/udunits/patches/patch-ac b/math/udunits/patches/patch-ac
new file mode 100644
index 00000000000..a96befd298a
--- /dev/null
+++ b/math/udunits/patches/patch-ac
@@ -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