Gentoo Archives: gentoo-commits

From: "Kacper Kowalik (xarthisius)" <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/minuit/files: minuit-5.27.02-asneeded.patch
Date: Wed, 02 Jun 2010 09:51:11
Message-Id: 20100602095104.04CD22CF37@corvid.gentoo.org
1 xarthisius 10/06/02 09:51:03
2
3 Added: minuit-5.27.02-asneeded.patch
4 Log:
5 Adding workaround for bug 314095
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 sci-libs/minuit/files/minuit-5.27.02-asneeded.patch
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/minuit/files/minuit-5.27.02-asneeded.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/minuit/files/minuit-5.27.02-asneeded.patch?rev=1.1&content-type=text/plain
13
14 Index: minuit-5.27.02-asneeded.patch
15 ===================================================================
16 Workaround for as-needed failure. It's not a proper patch!
17 If you know how to do it better, please do!
18
19 http://bugs.gentoo.org/show_bug.cgi?id=314095
20
21 --- src/Makefile.am
22 +++ src/Makefile.am
23 @@ -9,6 +9,10 @@
24 # The convenience library to be built.
25 lib_LTLIBRARIES = libMinuit2.la
26
27 +if GNUOPENMP
28 + libMinuit2_la_LIBADD = -lgomp
29 +endif
30 +
31 libMinuit2_la_SOURCES = \
32 AnalyticalGradientCalculator.cxx \
33 BasicMinimumError.cxx \
34 --- configure.in
35 +++ configure.in
36 @@ -43,6 +43,7 @@
37 AC_OPENMP
38 CFLAGS="$CFLAGS $OPENMP_CFLAGS"
39 CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
40 +AM_CONDITIONAL(GNUOPENMP, test "x$OPENMP_CXXFLAGS" = "x-fopenmp")
41
42 dnl files to be generated
43 AC_OUTPUT(Makefile inc/Makefile inc/Minuit2/Makefile inc/Math/Makefile src/Makefile