From 767ee03a3aa10f304c6de00fdd53768c560e4af8 Mon Sep 17 00:00:00 2001 From: Mingchuan Wu Date: Fri, 3 Mar 2023 11:36:56 +0800 Subject: [PATCH] [Update] Fix STRIP & RPATH. (cherry picked from commit 7a1c2be177ec6854ef8552edc18f09ed190e8068) --- pin-gcc-client.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pin-gcc-client.spec b/pin-gcc-client.spec index 76c19f2..3113044 100644 --- a/pin-gcc-client.spec +++ b/pin-gcc-client.spec @@ -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 - 0.4.1-2 +- Type:Update +- ID:NA +- SUG:NA +- DESC: Fix STRIP & RPATH + * Sun Feb 26 2023 dingguangya - 0.4.1-1 - Type:Update - ID:NA -- Gitee