diff --git a/pin-gcc-client.spec b/pin-gcc-client.spec index 3113044cb340e02aeda4c079b2665703902ec2c6..fa676a3da2efb23e69523ebb5b59bf114bca5ad9 100644 --- a/pin-gcc-client.spec +++ b/pin-gcc-client.spec @@ -1,6 +1,6 @@ Name: pin-gcc-client Version: 0.4.1 -Release: 2 +Release: 3 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 @@ -13,9 +13,6 @@ Requires: gcc grpc protobuf %description A Pin (Plug-IN framework) client is implemented based on GCC plugin and can execute the compiler optimization pass in GCC. -# skip debuginfo packages -%global debug_package %{nil} - %prep %setup -q @@ -30,10 +27,20 @@ cd _build %install cd _build +export CFLAGS="${RPM_OPT_FLAGS}" %make_install +mkdir -p %{buildroot}/etc/ld.so.conf.d +echo "{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf + find %{_libdir} -type f -name "*.so" -exec strip "{}" ";" +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + %files %license LICENSE %attr(0755,root,root) %{_libdir}/libpin_gcc_client.so @@ -42,8 +49,15 @@ find %{_libdir} -type f -name "*.so" -exec strip "{}" ";" %attr(0755,root,root) %{_libdir}/libMLIRPlugin.so %attr(0755,root,root) %{_libdir}/libMLIRPlugin.so.12 %attr(0644,root,root) %{_bindir}/pin-gcc-client.json +%config(noreplace) /etc/ld.so.conf.d/%{name}-%{_arch}.conf %changelog +* Mon Mar 6 2023 wumingchuan - 0.4.1-3 +- Type:Update +- ID:NA +- SUG:NA +- DESC: Fix RPATH problem by ld.so.conf.d + * Fri Mar 3 2023 wumingchuan - 0.4.1-2 - Type:Update - ID:NA