summaryrefslogtreecommitdiff
path: root/math/yorick/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-12-05 22:51:00 +0000
committerjoerg <joerg@pkgsrc.org>2011-12-05 22:51:00 +0000
commitad85023e78c2425f04730fa32422e000d4fbaa98 (patch)
tree76336b91694f4fe0578a50f6e95d290a97ada4fd /math/yorick/patches
parentf7a0d1994711a00c28adc3deb5005509a234b2bb (diff)
downloadpkgsrc-ad85023e78c2425f04730fa32422e000d4fbaa98.tar.gz
Avoid picking up non-standard libm builtins with newer GCC
Diffstat (limited to 'math/yorick/patches')
-rw-r--r--math/yorick/patches/patch-yorick_yconfig.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/math/yorick/patches/patch-yorick_yconfig.sh b/math/yorick/patches/patch-yorick_yconfig.sh
new file mode 100644
index 00000000000..9562e2e019c
--- /dev/null
+++ b/math/yorick/patches/patch-yorick_yconfig.sh
@@ -0,0 +1,16 @@
+$NetBSD: patch-yorick_yconfig.sh,v 1.1 2011/12/05 22:51:00 joerg Exp $
+
+--- yorick/yconfig.sh.orig 2011-12-05 19:15:23.000000000 +0000
++++ yorick/yconfig.sh
+@@ -90,9 +90,10 @@ fi
+ echo "NO_HYPOT=$NO_HYPOT" >>../Make.cfg
+
+ cat >cfg.c <<EOF
++double val = 3.;
+ int main(int argc, char *argv[])
+ {
+- double x=exp10(3.);
++ double x=exp10(val);
+ return (x<999.999)||(x>1000.001);
+ }
+ EOF