!5 [sync] PR-3: [RPM] Add debuginfo package and delete rpath in binary
From: @openeuler-sync-bot Reviewed-by: @eastb233 Signed-off-by: @eastb233
This commit is contained in:
commit
113bb21561
@ -1,12 +1,12 @@
|
|||||||
Name: llvm-bolt
|
Name: llvm-bolt
|
||||||
Version: 0
|
Version: 0
|
||||||
Release: 0.20211016.gitb72f753
|
Release: 1.20211016.gitb72f753
|
||||||
Summary: BOLT is a post-link optimizer developed to speed up large applications
|
Summary: BOLT is a post-link optimizer developed to speed up large applications
|
||||||
License: Apache 2.0
|
License: Apache 2.0
|
||||||
URL: https://github.com/facebookincubator/BOLT
|
URL: https://github.com/facebookincubator/BOLT
|
||||||
Source0: %{name}-%{version}.tar.xz
|
Source0: %{name}-%{version}.tar.xz
|
||||||
|
|
||||||
BuildRequires: gcc gcc-c++ cmake ninja-build libstdc++-static
|
BuildRequires: gcc gcc-c++ cmake ninja-build libstdc++-static chrpath ncurses-devel zlib-devel
|
||||||
Requires: glibc zlib ncurses-libs libstdc++ libgcc
|
Requires: glibc zlib ncurses-libs libstdc++ libgcc
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -14,15 +14,13 @@ BOLT is a post-link optimizer developed to speed up large applications.
|
|||||||
It achieves the improvements by optimizing application's code layout based
|
It achieves the improvements by optimizing application's code layout based
|
||||||
on execution profile gathered by sampling profiler, such as Linux perf tool.
|
on execution profile gathered by sampling profiler, such as Linux perf tool.
|
||||||
|
|
||||||
# skip debuginfo packages
|
|
||||||
%global debug_package %{nil}
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
mkdir -p _build
|
mkdir -p _build
|
||||||
cd _build
|
cd _build
|
||||||
%{__cmake} -G Ninja ../llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON \
|
%{__cmake} -G Ninja ../llvm -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_ENABLE_ASSERTIONS=ON \
|
||||||
-DLLVM_ENABLE_PROJECTS="clang;lld;bolt" -DCMAKE_INSTALL_PREFIX=%{_usr} \
|
-DLLVM_ENABLE_PROJECTS="clang;lld;bolt" -DCMAKE_INSTALL_PREFIX=%{_usr} \
|
||||||
|
-DLLVM_PARALLEL_LINK_JOBS=1 \
|
||||||
%ifarch %ix86 x86_64
|
%ifarch %ix86 x86_64
|
||||||
-DLLVM_TARGETS_TO_BUILD="X86"
|
-DLLVM_TARGETS_TO_BUILD="X86"
|
||||||
%endif
|
%endif
|
||||||
@ -41,6 +39,9 @@ cd _build
|
|||||||
find %{_bolt_install_dir} ! -name "llvm-bolt" ! -name "merge-fdata" ! -name "perf2bolt" -type f,l -exec rm -f '{}' \;
|
find %{_bolt_install_dir} ! -name "llvm-bolt" ! -name "merge-fdata" ! -name "perf2bolt" -type f,l -exec rm -f '{}' \;
|
||||||
# remove static libs.
|
# remove static libs.
|
||||||
rm -rf %{_buildrootdir}/root
|
rm -rf %{_buildrootdir}/root
|
||||||
|
# remove rpath
|
||||||
|
chrpath -d %{_bolt_install_dir}/bin/llvm-bolt
|
||||||
|
chrpath -d %{_bolt_install_dir}/bin/merge-fdata
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license bolt/LICENSE.TXT
|
%license bolt/LICENSE.TXT
|
||||||
@ -53,6 +54,12 @@ rm -rf %{_buildrootdir}/root
|
|||||||
%attr(-,root,root) %{_bindir}/perf2bolt
|
%attr(-,root,root) %{_bindir}/perf2bolt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 19 2022 liyancheng <412998149@qq.com> 0-1.20211016.gitb72f753
|
||||||
|
- Type:fix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: Add debuginfo package and delete rpath in binary
|
||||||
|
|
||||||
* Mon Nov 29 2021 liyancheng <412998149@qq.com>
|
* Mon Nov 29 2021 liyancheng <412998149@qq.com>
|
||||||
- Type:Init
|
- Type:Init
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user