summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/minuit/files')
-rw-r--r--sci-libs/minuit/files/minuit-5.24.00-as-needed.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/sci-libs/minuit/files/minuit-5.24.00-as-needed.patch b/sci-libs/minuit/files/minuit-5.24.00-as-needed.patch
new file mode 100644
index 000000000000..b1cf59b177a9
--- /dev/null
+++ b/sci-libs/minuit/files/minuit-5.24.00-as-needed.patch
@@ -0,0 +1,26 @@
+--- config/m4/ac_openmp.m4.orig 2009-07-17 16:35:06.000000000 +0100
++++ config/m4/ac_openmp.m4 2009-09-24 07:17:56.000000000 +0100
+@@ -87,6 +87,13 @@
+ *)
+ OPENMP_[]_AC_LANG_PREFIX[]FLAGS=$ac_cv_prog_[]_AC_LANG_ABBREV[]_openmp ;;
+ esac
++ OPENMP_LIBS=
++ if test "x$ac_option" = "x-fopenmp"; then
++ OPENMP_LIBS="-lgomp"
++ fi
++ AC_SUBST([OPENMP_LIBS])
++
+ fi
+ AC_SUBST([OPENMP_]_AC_LANG_PREFIX[FLAGS])
++
+ ])
+--- configure.in.orig 2009-09-24 06:53:14.000000000 +0100
++++ configure.in 2009-09-24 06:50:12.000000000 +0100
+@@ -43,6 +43,7 @@
+ AC_OPENMP
+ CFLAGS="$CFLAGS $OPENMP_CFLAGS"
+ CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
++LIBS="$LIBS $OPENMP_LIBS"
+
+ dnl files to be generated
+ AC_OUTPUT(Makefile inc/Makefile inc/Minuit2/Makefile inc/Math/Makefile src/Makefile