1 |
bicatali 08/11/24 11:02:06 |
2 |
|
3 |
Added: fftw-3.2-as-needed.patch fftw-3.2-cppflags.patch |
4 |
fftw-3.2-openmp.patch |
5 |
Log: |
6 |
Version bump. Thanks to Adam Pi#tyszek, closing bug #247561 |
7 |
(Portage version: 2.2_rc15/cvs/Linux 2.6.25-gentoo-r7 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sci-libs/fftw/files/fftw-3.2-as-needed.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/files/fftw-3.2-as-needed.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/files/fftw-3.2-as-needed.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: fftw-3.2-as-needed.patch |
16 |
=================================================================== |
17 |
--- Makefile.am.orig 2008-11-19 10:05:22.000000000 +0100 |
18 |
+++ Makefile.am 2008-11-19 10:06:56.000000000 +0100 |
19 |
@@ -37,6 +37,13 @@ |
20 |
if SMP |
21 |
if COMBINED_THREADS |
22 |
COMBINED_THREADLIBS=threads/libfftw3@PREC_SUFFIX@_threads.la |
23 |
+else |
24 |
+lib_LTLIBRARIES += libfftw3@PREC_SUFFIX@_threads.la |
25 |
+libfftw3@PREC_SUFFIX@_threads_la_SOURCES = |
26 |
+libfftw3@PREC_SUFFIX@_threads_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@ |
27 |
+libfftw3@PREC_SUFFIX@_threads_la_LIBADD = \ |
28 |
+ libfftw3@PREC_SUFFIX@.la \ |
29 |
+ threads/libfftw3@PREC_SUFFIX@_threads.la |
30 |
endif |
31 |
endif |
32 |
|
33 |
--- threads/Makefile.am.orig 2008-11-19 10:03:43.000000000 +0100 |
34 |
+++ threads/Makefile.am 2008-11-19 10:05:13.000000000 +0100 |
35 |
@@ -2,11 +2,7 @@ |
36 |
-I$(top_srcdir)/rdft -I$(top_srcdir)/api |
37 |
|
38 |
if SMP |
39 |
-if COMBINED_THREADS |
40 |
noinst_LTLIBRARIES = libfftw3@PREC_SUFFIX@_threads.la |
41 |
-else |
42 |
-lib_LTLIBRARIES = libfftw3@PREC_SUFFIX@_threads.la |
43 |
-endif |
44 |
endif |
45 |
|
46 |
# pkgincludedir = $(includedir)/fftw3@PREC_SUFFIX@ |
47 |
@@ -16,4 +12,5 @@ |
48 |
openmp.c threads.h dft-vrank-geq1.c ct.c rdft-vrank-geq1.c hc2hc.c \ |
49 |
vrank-geq1-rdft2.c f77api.c f77funcs.h |
50 |
|
51 |
+libfftw3@PREC_SUFFIX@_threads_la_LIBADD = $(THREADLIBS) |
52 |
libfftw3@PREC_SUFFIX@_threads_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@ |
53 |
|
54 |
|
55 |
|
56 |
1.1 sci-libs/fftw/files/fftw-3.2-cppflags.patch |
57 |
|
58 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/files/fftw-3.2-cppflags.patch?rev=1.1&view=markup |
59 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/files/fftw-3.2-cppflags.patch?rev=1.1&content-type=text/plain |
60 |
|
61 |
Index: fftw-3.2-cppflags.patch |
62 |
=================================================================== |
63 |
--- configure.ac.orig 2008-11-19 09:57:26.000000000 +0100 |
64 |
+++ configure.ac 2008-11-19 09:59:08.000000000 +0100 |
65 |
@@ -264,6 +264,8 @@ |
66 |
fi |
67 |
fi |
68 |
AC_SUBST(SIMD_CFLAGS) |
69 |
+# pass simd flags to preprocessor/compiler for proper intrinsics detection. |
70 |
+CPPFLAGS="$CPPFLAGS $SIMD_CFLAGS" |
71 |
|
72 |
dnl Checks for header files. |
73 |
AC_HEADER_STDC |
74 |
|
75 |
|
76 |
|
77 |
1.1 sci-libs/fftw/files/fftw-3.2-openmp.patch |
78 |
|
79 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/files/fftw-3.2-openmp.patch?rev=1.1&view=markup |
80 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/files/fftw-3.2-openmp.patch?rev=1.1&content-type=text/plain |
81 |
|
82 |
Index: fftw-3.2-openmp.patch |
83 |
=================================================================== |
84 |
--- configure.ac.orig 2008-11-19 09:57:26.000000000 +0100 |
85 |
+++ configure.ac 2008-11-19 09:59:08.000000000 +0100 |
86 |
@@ -435,10 +437,10 @@ |
87 |
AC_ARG_WITH(combined-threads, [AC_HELP_STRING([--with-combined-threads],[combine threads into main libfftw3])], with_combined_threads=$withval, with_combined_threads=no) |
88 |
|
89 |
if test "$enable_openmp"x != nox; then |
90 |
- AX_OPENMP([THREADLIBS=" " |
91 |
+ AX_OPENMP([THREADLIBS="$OPENMP_LIBS" |
92 |
AC_DEFINE(USING_OPENMP_THREADS, 1, [Define if we have and are using OpenMP multithreading directives]) |
93 |
CFLAGS="$CFLAGS $OPENMP_CFLAGS"], |
94 |
- [AC_MSG_ERROR([don't know how to enable OpenMP])]) |
95 |
+ [AC_MSG_WARN([don't know how to enable OpenMP, reverting to POSIX threads])]) |
96 |
fi |
97 |
|
98 |
dnl Check for threads library... |
99 |
--- m4/ax_openmp.m4.orig 2008-07-10 11:33:17.361562576 +0100 |
100 |
+++ m4/ax_openmp.m4 2008-07-10 12:05:14.280159723 +0100 |
101 |
@@ -59,6 +59,10 @@ |
102 |
else |
103 |
if test "x$ax_cv_[]_AC_LANG_ABBREV[]_openmp" != "xnone"; then |
104 |
OPENMP_[]_AC_LANG_PREFIX[]FLAGS=$ax_cv_[]_AC_LANG_ABBREV[]_openmp |
105 |
+ OPENMP_LIBS=" " |
106 |
+ if test "x$ax_cv_[]_AC_LANG_ABBREV[]_openmp" = "x-fopenmp"; then |
107 |
+ OPENMP_LIBS="-lgomp" |
108 |
+ fi |
109 |
fi |
110 |
m4_default([$1], [AC_DEFINE(HAVE_OPENMP,1,[Define if OpenMP is enabled])]) |
111 |
fi |