mirror of
https://abf.rosa.ru/djam/samba.git
synced 2025-02-24 09:32:49 +00:00
Enable clang, use %%clang_gcc_wrapper to remove unknown CFLAGS
This commit is contained in:
parent
1584ab7cb7
commit
8716f1c471
1 changed files with 2 additions and 4 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue