diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-03 19:21:17 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-03 19:21:17 +0000 |
commit | 15a29f47ca02487e2d38d7a9a1664469c19f390c (patch) | |
tree | f680b287ed5d0d0167f3fde0132cd155398bc2c2 /math | |
parent | d20be01669f8797b43c4343924d6aa02479b38fe (diff) | |
download | pkgsrc-15a29f47ca02487e2d38d7a9a1664469c19f390c.tar.gz |
Make it a bit harder for the compiler to optimise the sin() test
away: Use a global variable as argument.
Diffstat (limited to 'math')
-rw-r--r-- | math/udunits/distinfo | 4 | ||||
-rw-r--r-- | math/udunits/patches/patch-ac | 18 |
2 files changed, 13 insertions, 9 deletions
diff --git a/math/udunits/distinfo b/math/udunits/distinfo index b5b05b82e7f..56e038a23fa 100644 --- a/math/udunits/distinfo +++ b/math/udunits/distinfo @@ -1,9 +1,9 @@ -$NetBSD: distinfo,v 1.9 2005/08/08 18:13:13 jlam Exp $ +$NetBSD: distinfo,v 1.10 2006/01/03 19:21:17 joerg Exp $ SHA1 (udunits-1.12.1/udunits.tar.Z) = ee37ca61eb1dcf34165b7573cc1645824bd6968d RMD160 (udunits-1.12.1/udunits.tar.Z) = fb2f0442673ca47d302782c84ce37b8da1e16535 Size (udunits-1.12.1/udunits.tar.Z) = 365873 bytes SHA1 (patch-aa) = 0998141196898a7bc168fe45c5019586645167f2 SHA1 (patch-ab) = 9a98e048499d38f8dedba6fb1a169e178dbd77ba -SHA1 (patch-ac) = 508fafdc724f9b95543dd16c2bd2f0242eb892a8 +SHA1 (patch-ac) = 7b2264a977dbc389bffbbd4d50364878587f9738 SHA1 (patch-ad) = d48978bd66d9ef691cd9c70b057a7e5d8a802fb6 diff --git a/math/udunits/patches/patch-ac b/math/udunits/patches/patch-ac index a96befd298a..e3b8b49b837 100644 --- a/math/udunits/patches/patch-ac +++ b/math/udunits/patches/patch-ac @@ -1,22 +1,26 @@ -$NetBSD: patch-ac,v 1.1 2004/02/02 03:19:25 kristerw Exp $ +$NetBSD: patch-ac,v 1.2 2006/01/03 19:21:17 joerg Exp $ ---- configure.orig 2004-02-02 04:09:56.000000000 +0100 -+++ configure 2004-02-02 04:11:44.000000000 +0100 -@@ -2095,7 +2095,7 @@ +--- configure.orig 2003-08-29 15:53:25.000000000 +0000 ++++ configure +@@ -2094,8 +2094,9 @@ echo "configure:2093: checking for (void + #line 2095 "configure" #include "confdefs.h" ++double val; int main() { -(void)sin(0.0); -+return sin(0.0); ++return sin(val); ; 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 @@ +@@ -2141,8 +2142,9 @@ echo "configure:2140: checking for (void + #line 2142 "configure" #include "confdefs.h" ++double val; int main() { -(void)sin(0.0); -+return sin(0.0); ++return sin(val); ; return 0; } EOF if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |