[Update] Fix STRIP & RPATH.
This commit is contained in:
parent
b2a7f80f13
commit
7a1c2be177
@ -1,6 +1,6 @@
|
||||
Name: pin-gcc-client
|
||||
Version: 0.4.1
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: A Pin (Plug-IN framework) client is implemented based on GCC plugin and can execute the compiler optimization pass in GCC.
|
||||
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
|
||||
URL: https://gitee.com/src-openeuler/pin-gcc-client
|
||||
@ -21,7 +21,7 @@ A Pin (Plug-IN framework) client is implemented based on GCC plugin and can exec
|
||||
|
||||
mkdir -p _build
|
||||
cd _build
|
||||
%{cmake} .. -DCMAKE_INSTALL_PREFIX=%{_usr} -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DMLIR_DIR=/usr/lib64/cmake/mlir -DLLVM_DIR=/usr/lib64/cmake/llvm
|
||||
%{cmake} .. -DCMAKE_INSTALL_PREFIX=%{_usr} -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_SKIP_RPATH=ON -DMLIR_DIR=/usr/lib64/cmake/mlir -DLLVM_DIR=/usr/lib64/cmake/llvm
|
||||
|
||||
|
||||
%build
|
||||
@ -32,6 +32,8 @@ cd _build
|
||||
cd _build
|
||||
%make_install
|
||||
|
||||
find %{_libdir} -type f -name "*.so" -exec strip "{}" ";"
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%attr(0755,root,root) %{_libdir}/libpin_gcc_client.so
|
||||
@ -42,6 +44,12 @@ cd _build
|
||||
%attr(0644,root,root) %{_bindir}/pin-gcc-client.json
|
||||
|
||||
%changelog
|
||||
* Fri Mar 3 2023 wumingchuan <wumingchuan1992@foxmail.com> - 0.4.1-2
|
||||
- Type:Update
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: Fix STRIP & RPATH
|
||||
|
||||
* Sun Feb 26 2023 dingguangya <dingguangya1@huawei.com> - 0.4.1-1
|
||||
- Type:Update
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user