summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/fftw/files/fftw-3.1.2-openmp.patch')
-rw-r--r--sci-libs/fftw/files/fftw-3.1.2-openmp.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/sci-libs/fftw/files/fftw-3.1.2-openmp.patch b/sci-libs/fftw/files/fftw-3.1.2-openmp.patch
new file mode 100644
index 000000000000..5ccfea691a8f
--- /dev/null
+++ b/sci-libs/fftw/files/fftw-3.1.2-openmp.patch
@@ -0,0 +1,12 @@
+--- m4/ax_openmp.m4.orig 2008-07-01 00:14:48.814076874 +0100
++++ m4/ax_openmp.m4 2008-06-30 23:42:30.534809664 +0100
+@@ -59,6 +59,9 @@
+ else
+ if test "x$ax_cv_[]_AC_LANG_ABBREV[]_openmp" != "xnone"; then
+ OPENMP_[]_AC_LANG_PREFIX[]FLAGS=$ax_cv_[]_AC_LANG_ABBREV[]_openmp
++ if test "x$ax_cv_[]_AC_LANG_ABBREV[]_openmp" = "x-fopenmp"; then
++ OPENMP_LIBS="-lgomp"
++ fi
+ fi
+ m4_default([$1], [AC_DEFINE(HAVE_OPENMP,1,[Define if OpenMP is enabled])])
+ fi