summaryrefslogtreecommitdiff
path: root/math/TinySVM
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2012-03-01 05:01:15 +0000
committerobache <obache@pkgsrc.org>2012-03-01 05:01:15 +0000
commitb3b032bc58f0be7bcd8d91faa7bcf09723812260 (patch)
tree18d64c3e3e43440e33fc762277c87491af365638 /math/TinySVM
parent537c12fb32210f0234eb8b80c2edb7fa5c5ac85f (diff)
downloadpkgsrc-b3b032bc58f0be7bcd8d91faa7bcf09723812260.tar.gz
Honor CFLAGS/CXXFLAGS and avoid to override the optimizer levels.
Diffstat (limited to 'math/TinySVM')
-rw-r--r--math/TinySVM/distinfo4
-rw-r--r--math/TinySVM/patches/patch-ab18
2 files changed, 17 insertions, 5 deletions
diff --git a/math/TinySVM/distinfo b/math/TinySVM/distinfo
index 562e5a234cf..b9a65a72dd0 100644
--- a/math/TinySVM/distinfo
+++ b/math/TinySVM/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.3 2012/03/01 04:49:51 obache Exp $
+$NetBSD: distinfo,v 1.4 2012/03/01 05:01:15 obache Exp $
SHA1 (TinySVM-0.09.tar.gz) = 9c3c36454c475180ef6646d059376f35549cad08
RMD160 (TinySVM-0.09.tar.gz) = d44586810d4776a251cda4a08b1aa9148108c8e6
Size (TinySVM-0.09.tar.gz) = 317636 bytes
SHA1 (patch-aa) = bbeefe45ecf7f447eb8b6f692d035b74f01cb7a8
-SHA1 (patch-ab) = 543aed794ee4c90ee4bd8ddd583782ac9ac3185c
+SHA1 (patch-ab) = 4d8214b35c6422ba04a5e5d1007057363a704978
diff --git a/math/TinySVM/patches/patch-ab b/math/TinySVM/patches/patch-ab
index 28c0c9e039e..8ec500e2a2b 100644
--- a/math/TinySVM/patches/patch-ab
+++ b/math/TinySVM/patches/patch-ab
@@ -1,9 +1,10 @@
-$NetBSD: patch-ab,v 1.2 2012/03/01 04:49:51 obache Exp $
+$NetBSD: patch-ab,v 1.3 2012/03/01 05:01:15 obache Exp $
* Not using Solaris builtin make in pkgsrc.
+* Honor CFLAGS/CXXFLAGS and avoid to override the optimizer levels.
---- configure.orig 2002-08-20 08:01:54.000000000 +0200
-+++ configure 2011-09-13 16:52:23.293134524 +0200
+--- configure.orig 2002-08-20 06:01:54.000000000 +0000
++++ configure
@@ -6095,9 +6095,6 @@ if $ac_make --version 2>/dev/null | grep
echo "$ac_t""yes" 1>&6
else
@@ -14,3 +15,14 @@ $NetBSD: patch-ab,v 1.2 2012/03/01 04:49:51 obache Exp $
fi
+@@ -6105,8 +6102,8 @@ fi
+
+
+ if test -n "$GCC"; then
+- CFLAGS="-Wall -O9 -funroll-all-loops -finline -ffast-math"
+- CXXFLAGS="-Wall -O9 -funroll-all-loops -finline -ffast-math"
++ CFLAGS="$CFLAGS -Wall -funroll-all-loops -finline -ffast-math"
++ CXXFLAGS="$CXXFLAGS -Wall -funroll-all-loops -finline -ffast-math"
+ fi
+
+ # On Intel systems with gcc, we may need to compile with -mieee-fp to