[NLopt/el5] append `-fpermissive` to C[XX]FLAGS on Fedora 19+
Björn Esser
besser82 at fedoraproject.org
Fri Dec 20 15:53:56 UTC 2013
commit c95460c53d89632bd5f2238933cabfd9a58f5a75
Author: Björn Esser <bjoern.esser at gmail.com>
Date: Fri Dec 20 16:53:30 2013 +0100
append `-fpermissive` to C[XX]FLAGS on Fedora 19+
NLopt.spec | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/NLopt.spec b/NLopt.spec
index 4613e2f..b44379b 100644
--- a/NLopt.spec
+++ b/NLopt.spec
@@ -237,6 +237,11 @@ cp -a . %{py3dir}
%build
+%if 0%{?fedora} >= 19
+export CFLAGS="%{optflags} -fpermissive"
+export CXXFLAGS="%{optflags} -fpermissive"
+%endif #0%%{?fedora} >= 19
+
%configure \
--enable-shared \
--enable-maintainer-mode \
@@ -402,6 +407,7 @@ octave -H -q --no-window-system --no-site-file --eval "pkg rebuild"
- move `README.md` only if existing
- create an empty Makefile on el5 instead of modifying top-level Makefile.am
- do not autoreconf on el5
+- append `-fpermissive` to C[XX]FLAGS on Fedora 19+
* Fri Dec 20 2013 Björn Esser <bjoern.esser at gmail.com> - 2.4-3.git20130903.35e6377
- made %%clean-target conditional on el5
More information about the scm-commits
mailing list