[Update] Fix STRIP & RPATH.
This commit is contained in:
parent
c49226d8c0
commit
8b16ac1902
@ -1,6 +1,6 @@
|
||||
Name: pin-server
|
||||
Version: 0.4.0
|
||||
Release: 3
|
||||
Release: 4
|
||||
Summary: Pin (Plug-IN framework) server provides plugin APIs for compiler optimization developers to develop optimization pass.
|
||||
License: Apache 2.0
|
||||
URL: https://gitee.com/openeuler/pin-server
|
||||
@ -59,7 +59,7 @@ A demo for pin-server
|
||||
|
||||
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
|
||||
cd _build
|
||||
@ -69,6 +69,9 @@ cd _build
|
||||
cd _build
|
||||
%make_install
|
||||
|
||||
find %{_bindir} -type f -name "pin_server" -exec strip "{}" ";"
|
||||
find %{_libdir} -type f -name "*.so" -exec strip "{}" ";"
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%attr(0755,root,root) %{_bindir}/pin_server
|
||||
@ -82,6 +85,12 @@ cd _build
|
||||
%attr(0644,root,root) %{_libdir}/libpin_user.sha256
|
||||
|
||||
%changelog
|
||||
* Fri Mar 3 2023 wumingchuan <wumingchuan1992@foxmail.com> - 0.4.0-4
|
||||
- Type:Update
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: Fix STRIP & RPATH
|
||||
|
||||
* Sun Feb 26 2023 dingguangya <dingguangya1@huawei.com> - 0.4.0-3
|
||||
- Type:Update
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user