Fix rpath.

This commit is contained in:
Gwyn Ciesla 2021-08-05 10:14:17 -05:00
parent bab1a4255a
commit e6e93b464e
1 changed files with 4 additions and 1 deletions

View File

@ -156,6 +156,7 @@ Provides documentation for prelude generated by gtk-doc.
--without-included-regex \
--includedir=%{_includedir}/%{name} \
--enable-gtk-doc \
--disable-rpath \
--with-html-dir=%{_docdir}/%{name}-devel
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
%make_build
@ -163,7 +164,9 @@ sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
%install
%make_install
chrpath -d %{buildroot}%{_libdir}/*.so.*
#chrpath -d %{buildroot}%{_libdir}/*.so.*
chmod 755 %{buildroot}%{_libdir}/perl5/vendor_perl/auto/Prelude/Prelude.so
chrpath -d %{buildroot}%{_libdir}/perl5/vendor_perl/auto/Prelude/Prelude.so
find %{buildroot} -name '*.la' -delete
find %{buildroot} -name 'perllocal.pod' -delete