add requires xz, binutils for objreloc
This commit is contained in:
parent
5240bf773d
commit
b1533cec9f
@ -3,7 +3,7 @@
|
||||
%global __cargo_common_opts %{?__cargo_common_opts} --all
|
||||
Name: native-turbo
|
||||
Version: 1.0.0
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: Numa Aware Scheduling
|
||||
License: Mulan PSL v2
|
||||
URL: https://gitee.com/openeuler/native-turbo
|
||||
@ -20,8 +20,7 @@ sysboost can merge ELF files to improve performance.
|
||||
# Add devel subpackage
|
||||
%package tools
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildRequires: binutils
|
||||
Requires: xz, binutils
|
||||
|
||||
%description tools
|
||||
The %{name}-tools package contains some tools of sysboost.
|
||||
@ -83,6 +82,12 @@ install -m 755 $RPM_BUILD_DIR/objreloc $RPM_BUILD_ROOT%{_bindir}/
|
||||
%systemd_postun_with_restart %{name}.service
|
||||
|
||||
%changelog
|
||||
* Mon Jun 12 2023 liutie <liutie4@huawei.com> - 1.0.0-5
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: when tools should run with xz and
|
||||
|
||||
* Mon Jun 12 2023 liutie <liutie4@huawei.com> - 1.0.0-4
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
|
||||
Binary file not shown.
@ -12,4 +12,6 @@ fi
|
||||
|
||||
# Remove debug and unnecessary sections, and create relocation and primary files
|
||||
objcopy --strip-debug --strip-dwo --strip-unneeded "$LIB_FILE" "$LIB_FILE.relocation"
|
||||
objcopy --remove-relocations=".*" "$LIB_FILE" "$LIB_FILE.prim"
|
||||
xz -z "$LIB_FILE.relocation"
|
||||
mv -f "$LIB_FILE.relocation.xz" "$LIB_FILE.relocation"
|
||||
# objcopy --remove-relocations=".*" "$LIB_FILE" "$LIB_FILE.prim"
|
||||
Loading…
x
Reference in New Issue
Block a user