!28 [Update] Fix RPATH problem by ld.so.conf.d
From: @wumingchuan Reviewed-by: @li-yancheng Signed-off-by: @li-yancheng
This commit is contained in:
commit
1ba70bc5fe
@ -1,6 +1,6 @@
|
|||||||
Name: pin-gcc-client
|
Name: pin-gcc-client
|
||||||
Version: 0.4.1
|
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.
|
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
|
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
|
||||||
URL: https://gitee.com/src-openeuler/pin-gcc-client
|
URL: https://gitee.com/src-openeuler/pin-gcc-client
|
||||||
@ -13,9 +13,6 @@ Requires: gcc grpc protobuf
|
|||||||
%description
|
%description
|
||||||
A Pin (Plug-IN framework) client is implemented based on GCC plugin and can execute the compiler optimization pass in GCC.
|
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
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
@ -30,10 +27,20 @@ cd _build
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
cd _build
|
cd _build
|
||||||
|
export CFLAGS="${RPM_OPT_FLAGS}"
|
||||||
%make_install
|
%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 "{}" ";"
|
find %{_libdir} -type f -name "*.so" -exec strip "{}" ";"
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%attr(0755,root,root) %{_libdir}/libpin_gcc_client.so
|
%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
|
||||||
%attr(0755,root,root) %{_libdir}/libMLIRPlugin.so.12
|
%attr(0755,root,root) %{_libdir}/libMLIRPlugin.so.12
|
||||||
%attr(0644,root,root) %{_bindir}/pin-gcc-client.json
|
%attr(0644,root,root) %{_bindir}/pin-gcc-client.json
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 6 2023 wumingchuan <wumingchuan1992@foxmail.com> - 0.4.1-3
|
||||||
|
- Type:Update
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: Fix RPATH problem by ld.so.conf.d
|
||||||
|
|
||||||
* Fri Mar 3 2023 wumingchuan <wumingchuan1992@foxmail.com> - 0.4.1-2
|
* Fri Mar 3 2023 wumingchuan <wumingchuan1992@foxmail.com> - 0.4.1-2
|
||||||
- Type:Update
|
- Type:Update
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user