!24 [Update] Fix STRIP & RPATH.

From: @wumingchuan 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
This commit is contained in:
openeuler-ci-bot 2023-03-03 06:53:33 +00:00 committed by Gitee
commit 6a3500d976
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: pin-server Name: pin-server
Version: 0.4.0 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. Summary: Pin (Plug-IN framework) server provides plugin APIs for compiler optimization developers to develop optimization pass.
License: Apache 2.0 License: Apache 2.0
URL: https://gitee.com/openeuler/pin-server URL: https://gitee.com/openeuler/pin-server
@ -59,7 +59,7 @@ A demo for pin-server
mkdir -p _build mkdir -p _build
cd _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 %build
cd _build cd _build
@ -69,6 +69,9 @@ cd _build
cd _build cd _build
%make_install %make_install
find %{_bindir} -type f -name "pin_server" -exec strip "{}" ";"
find %{_libdir} -type f -name "*.so" -exec strip "{}" ";"
%files %files
%license LICENSE %license LICENSE
%attr(0755,root,root) %{_bindir}/pin_server %attr(0755,root,root) %{_bindir}/pin_server
@ -82,6 +85,12 @@ cd _build
%attr(0644,root,root) %{_libdir}/libpin_user.sha256 %attr(0644,root,root) %{_libdir}/libpin_user.sha256
%changelog %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 * Sun Feb 26 2023 dingguangya <dingguangya1@huawei.com> - 0.4.0-3
- Type:Update - Type:Update
- ID:NA - ID:NA