]> git.pld-linux.org Git - packages/fftw3.git/commitdiff
honour rpm compiler flags with autoconf 2.70
authorJan Palus <atler@pld-linux.org>
Mon, 30 Aug 2021 20:34:48 +0000 (22:34 +0200)
committerJan Palus <atler@pld-linux.org>
Mon, 30 Aug 2021 20:36:13 +0000 (22:36 +0200)
see https://github.com/autoconf-archive/autoconf-archive/pull/239

fftw3-flags.patch [new file with mode: 0644]
fftw3.spec

diff --git a/fftw3-flags.patch b/fftw3-flags.patch
new file mode 100644 (file)
index 0000000..f939383
--- /dev/null
@@ -0,0 +1,11 @@
+--- fftw-3.3.8/m4/ax_cc_maxopt.m4.orig 2018-05-24 14:03:22.000000000 +0200
++++ fftw-3.3.8/m4/ax_cc_maxopt.m4      2021-08-30 21:58:51.863783698 +0200
+@@ -26,7 +26,7 @@
+ AC_REQUIRE([AC_CANONICAL_HOST])
+ # Try to determine "good" native compiler flags if none specified via CFLAGS
+-if test "$ac_test_CFLAGS" != "set"; then
++if test "x$ac_test_CFLAGS" = "x"; then
+   CFLAGS=""
+   case $ax_cv_c_compiler_vendor in
+     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
index 733c9765f727416a927571882d6a58cfb2b244a6..cd134041506ed729423360686d0402f914cddc40 100644 (file)
@@ -30,6 +30,7 @@ Group:                Libraries
 Source0:       http://fftw.org/fftw-%{version}.tar.gz
 # Source0-md5: 8aac833c943d8e90d51b697b27d4384d
 Patch0:                %{name}-info.patch
+Patch1:                %{name}-flags.patch
 URL:           http://www.fftw.org/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake >= 1:1.7
@@ -297,6 +298,7 @@ Pliki programistyczne wspólne dla wszystkich wersji bibliotek fftw
 %prep
 %setup -q -n fftw-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
This page took 0.031013 seconds and 4 git commands to generate.