# - 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
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