From 8b16ac190239bc6ac8139edeb8a300b6e6cad28d Mon Sep 17 00:00:00 2001 From: Mingchuan Wu Date: Fri, 3 Mar 2023 11:44:20 +0800 Subject: [PATCH] [Update] Fix STRIP & RPATH. --- pin-server.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pin-server.spec b/pin-server.spec index bb1d04e..61a1018 100644 --- a/pin-server.spec +++ b/pin-server.spec @@ -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 - 0.4.0-4 +- Type:Update +- ID:NA +- SUG:NA +- DESC: Fix STRIP & RPATH + * Sun Feb 26 2023 dingguangya - 0.4.0-3 - Type:Update - ID:NA