]> git.pld-linux.org Git - packages/thunderbird.git/commitdiff
- added clang bcond
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 19 Aug 2017 08:25:02 +0000 (10:25 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 19 Aug 2017 08:25:02 +0000 (10:25 +0200)
thunderbird.spec

index ade65b79183c6bd53742757d4127147601564938..200d9b36f1d4431cd6088df339997554315fb9c7 100644 (file)
@@ -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
This page took 0.543482 seconds and 4 git commands to generate.