[packages/thunderbird] - added clang bcond

baggins baggins at pld-linux.org
Sat Aug 19 10:25:12 CEST 2017


commit 19f2dc468ffd8ea24726e6dcb679977cd6d5d8c5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Aug 19 10:25:02 2017 +0200

    - added clang bcond

 thunderbird.spec | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/thunderbird.spec b/thunderbird.spec
index ade65b7..200d9b3 100644
--- a/thunderbird.spec
+++ b/thunderbird.spec
@@ -12,6 +12,7 @@
 # - disabled shared_js - https://bugzilla.mozilla.org/show_bug.cgi?id=1039964
 %bcond_with	shared_js	# shared libmozjs library [broken]
 %bcond_with	system_icu	# build with system ICU (disabled due to crashes with system icu 58.2)
+%bcond_with	clang		# build using Clang/LLVM
 
 %if 0%{?_enable_debug_packages} != 1
 %undefine	crashreporter
@@ -150,6 +151,16 @@ funkcjonalność kalendarza.
 cat << EOF > .mozconfig
 mk_add_options MOZ_OBJDIR=%{objdir}
 
+%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"
+
 %if %{with crashreporter}
 export MOZ_DEBUG_SYMBOLS=1
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/thunderbird.git/commitdiff/19f2dc468ffd8ea24726e6dcb679977cd6d5d8c5



More information about the pld-cvs-commit mailing list