From 5086fbc459a1ea6ab8a9dc411235811fb5345388 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sat, 19 Aug 2017 10:22:35 +0200 Subject: [PATCH] - added clang bcond (works for me) --- firefox.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/firefox.spec b/firefox.spec index df6ea82..62c991b 100644 --- a/firefox.spec +++ b/firefox.spec @@ -10,6 +10,7 @@ # - disabled shared_js - https://bugzilla.mozilla.org/show_bug.cgi?id=1039964 %bcond_with shared_js # shared libmozjs library [broken] %bcond_without system_icu # build without system ICU +%bcond_with clang # build using Clang/LLVM # On updating version, grab CVE links from: # https://www.mozilla.org/security/known-vulnerabilities/firefox.html @@ -213,8 +214,13 @@ cp -p %{_datadir}/automake/config.* build/autoconf cat << 'EOF' > .mozconfig . $topsrcdir/browser/config/mozconfig +%if %{with clang} +export CC="clang" +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" -- 2.44.0