diff options
author | markd <markd@pkgsrc.org> | 2007-06-21 12:38:27 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2007-06-21 12:38:27 +0000 |
commit | 7a8c2abbde2056b9461d65619823eb4182588607 (patch) | |
tree | 84f82bdc688d186fe03e09248b266faaac82d0ea /graphics/geomview/patches | |
parent | 819e5fb3827bf276dd3195937de2cfe9253a1d99 (diff) | |
download | pkgsrc-7a8c2abbde2056b9461d65619823eb4182588607.tar.gz |
Make configure's test on the need for -lm more robust in the face of
optimisers.
Diffstat (limited to 'graphics/geomview/patches')
-rw-r--r-- | graphics/geomview/patches/patch-aa | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/graphics/geomview/patches/patch-aa b/graphics/geomview/patches/patch-aa index 60c3a90d3ce..3a37280fd4e 100644 --- a/graphics/geomview/patches/patch-aa +++ b/graphics/geomview/patches/patch-aa @@ -1,8 +1,19 @@ -$NetBSD: patch-aa,v 1.3 2001/07/04 03:08:58 jlam Exp $ +$NetBSD: patch-aa,v 1.4 2007/06/21 12:38:27 markd Exp $ ---- configure.orig Mon Mar 26 00:23:02 2001 +--- configure.orig 2001-03-26 17:23:02.000000000 +1200 +++ configure -@@ -3462,6 +3462,7 @@ +@@ -3435,8 +3435,9 @@ cat > conftest.$ac_ext <<EOF + #line 3436 "configure" + #include "confdefs.h" + #include <math.h> ++double s; + int main() { +- double s = sin(1.5); ++ s = sin(1.5); + ; return 0; } + EOF + if { (eval echo configure:3443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +@@ -3462,6 +3463,7 @@ echo "configure:3462: checking whether w cat > conftest.$ac_ext <<EOF #line 3464 "configure" #include "confdefs.h" @@ -10,7 +21,7 @@ $NetBSD: patch-aa,v 1.3 2001/07/04 03:08:58 jlam Exp $ #include <sys/socket.h> int main() { int s = socket(AF_UNIX, SOCK_STREAM, 0); -@@ -3865,7 +3866,7 @@ +@@ -3865,7 +3867,7 @@ done moduledir="\$(exec_prefix)/bin" |