!59 Add compile option -DCLANG_LINK_CLANG_DYLIB=ON, -DBUILD_SHARED_LIBS=OFF
From: @wangqiang95 Reviewed-by: @cf-zhao Signed-off-by: @cf-zhao
This commit is contained in:
commit
b57343ea35
11
clang.spec
11
clang.spec
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Name: clang
|
Name: clang
|
||||||
Version: 12.0.1
|
Version: 12.0.1
|
||||||
Release: 2
|
Release: 3
|
||||||
License: GPL-2.0-only and Apache-2.0 and MIT
|
License: GPL-2.0-only and Apache-2.0 and MIT
|
||||||
Summary: An "LLVM native" C/C++/Objective-C compiler
|
Summary: An "LLVM native" C/C++/Objective-C compiler
|
||||||
URL: http://llvm.org
|
URL: http://llvm.org
|
||||||
@ -112,7 +112,9 @@ cd _build
|
|||||||
|
|
||||||
|
|
||||||
%cmake .. \
|
%cmake .. \
|
||||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
-DCLANG_LINK_CLANG_DYLIB=ON \
|
||||||
|
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||||
|
-DBUILD_SHARED_LIBS=OFF \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_INSTALL_RPATH:BOOL=";" \
|
-DCMAKE_INSTALL_RPATH:BOOL=";" \
|
||||||
-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
|
-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
|
||||||
@ -160,6 +162,8 @@ rm -vf %{buildroot}%{_datadir}/clang/clang-format-sublime.py*
|
|||||||
|
|
||||||
rm -Rvf %{buildroot}%{_pkgdocdir}
|
rm -Rvf %{buildroot}%{_pkgdocdir}
|
||||||
|
|
||||||
|
rm -Rvf %{buildroot}%{_libdir}/*.a
|
||||||
|
|
||||||
rm -vf %{buildroot}%{_datadir}/clang/bash-autocomplete.sh
|
rm -vf %{buildroot}%{_datadir}/clang/bash-autocomplete.sh
|
||||||
|
|
||||||
# Create sub-directories in the clang resource directory that will be
|
# Create sub-directories in the clang resource directory that will be
|
||||||
@ -266,6 +270,9 @@ ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver}
|
|||||||
%{_bindir}/git-clang-format
|
%{_bindir}/git-clang-format
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 13 2023 wangqiang <wangqiang1@kylinos.cn> - 12.0.1-3
|
||||||
|
- Add compile option -DCLANG_LINK_CLANG_DYLIB=ON, -DBUILD_SHARED_LIBS=OFF
|
||||||
|
|
||||||
* Thu Oct 27 2022 dongyuzhen <dongyuzhen@h-partners.com> - 12.0.1-2
|
* Thu Oct 27 2022 dongyuzhen <dongyuzhen@h-partners.com> - 12.0.1-2
|
||||||
- Rebuild for next release
|
- Rebuild for next release
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user