[packages/firefox] - filterout problematic flags for clang

baggins baggins at pld-linux.org
Sat Aug 19 11:02:09 CEST 2017


commit 959fde775da4e3f43c843769fc468889571d00d2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Aug 19 11:01:50 2017 +0200

    - filterout problematic flags for clang

 firefox.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/firefox.spec b/firefox.spec
index f4f32d8..2b03add 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -151,6 +151,10 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		filterout_cpp		-D_FORTIFY_SOURCE=[0-9]+
 
+%if %{with clang}
+%define		filterout_cpp		-fvar-tracking-assignments
+%endif
+
 # don't satisfy other packages
 %define		_noautoprovfiles	%{_libdir}/%{name}
 
@@ -220,9 +224,9 @@ export CXX="clang++"
 %else
 export CC="%{__cc}"
 export CXX="%{__cxx}"
+%endif
 export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
 export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64"
-%endif
 
 mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-%{_target_cpu}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/firefox.git/commitdiff/959fde775da4e3f43c843769fc468889571d00d2



More information about the pld-cvs-commit mailing list