[packages/fftw3] honour rpm compiler flags with autoconf 2.70
atler
atler at pld-linux.org
Tue Aug 31 00:52:59 CEST 2021
commit e0a749d1449713be4498e94ce5ecae07cda1bf51
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Aug 30 22:34:48 2021 +0200
honour rpm compiler flags with autoconf 2.70
see https://github.com/autoconf-archive/autoconf-archive/pull/239
fftw3-flags.patch | 11 +++++++++++
fftw3.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/fftw3.spec b/fftw3.spec
index 733c976..cd13404 100644
--- a/fftw3.spec
+++ b/fftw3.spec
@@ -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}
diff --git a/fftw3-flags.patch b/fftw3-flags.patch
new file mode 100644
index 0000000..f939383
--- /dev/null
+++ b/fftw3-flags.patch
@@ -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"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/fftw3.git/commitdiff/e0a749d1449713be4498e94ce5ecae07cda1bf51
More information about the pld-cvs-commit
mailing list