[xulrunner/f13/master] Added -fpermissive cxxflag
Jan Horak
xhorak at fedoraproject.org
Mon Mar 7 13:23:56 UTC 2011
commit 294255ed2f8e332a4acdef75812f7fcbb3bd094b
Author: Jan Horak <jhorak at redhat.com>
Date: Mon Mar 7 14:23:51 2011 +0100
Added -fpermissive cxxflag
xulrunner.spec | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/xulrunner.spec b/xulrunner.spec
index 9326821..97c175b 100644
--- a/xulrunner.spec
+++ b/xulrunner.spec
@@ -166,7 +166,11 @@ MOZ_APP_DIR=%{_libdir}/%{name}-${INTERNAL_GECKO}
# Mozilla builds with -Wall with exception of a few warnings which show up
# everywhere in the code; so, don't override that.
-MOZ_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | %{__sed} -e 's/-Wall//')
+#
+# -fpermissive is needed to build with gcc 4.6+ which has become stricter
+#
+MOZ_OPT_FLAGS=$(echo "$RPM_OPT_FLAGS -fpermissive" | \
+ %{__sed} -e 's/-Wall//' )
export CFLAGS=$MOZ_OPT_FLAGS
export CXXFLAGS=$MOZ_OPT_FLAGS
More information about the scm-commits
mailing list