Enable clang, use %%clang_gcc_wrapper to remove unknown CFLAGS

This commit is contained in:
Mikhail Novosyolov 2019-03-28 17:34:27 +03:00
parent 1584ab7cb7
commit 8716f1c471

View file

@ -32,7 +32,7 @@
# Default options # Default options
# gcc5 seems to build a bit faster than clang6 # gcc5 seems to build a bit faster than clang6
%bcond_with clang %bcond_without clang
%bcond_with doc %bcond_with doc
%bcond_with cifs %bcond_with cifs
%bcond_without ads %bcond_without ads
@ -1460,9 +1460,7 @@ sed -e 's/@ROSA_VENDOR_PATCH@/%{release}/g' -i VERSION
install -d -m 0755 %{buildroot}/%{_libdir}/samba install -d -m 0755 %{buildroot}/%{_libdir}/samba
%if %{with clang} %if %{with clang}
export CC=clang %clang_gcc_wrapper
export CXX=clang++
export CPP=clang-cpp
%endif %endif
export CFLAGS="-O2 -g" export CFLAGS="-O2 -g"