[packages/php] remove static libs

glen glen at pld-linux.org
Mon May 25 10:39:27 CEST 2015


commit b343cce7a0ec146b4256f9432f3b13e9635615e5
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon May 25 11:39:16 2015 +0300

    remove static libs

 php.spec | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/php.spec b/php.spec
index 6783f86..cfce3c6 100644
--- a/php.spec
+++ b/php.spec
@@ -2727,6 +2727,13 @@ sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_c
 # better solution?
 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/%{name}/build/acinclude.m4
 
+# somewhy there are installed static versions we don't use
+%if %{with apache1} || %{with apache2}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/apache*/libphp*.a
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libphp*.a
+%{__rm} $RPM_BUILD_ROOT%{php_extensiondir}/*.a
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/b343cce7a0ec146b4256f9432f3b13e9635615e5



More information about the pld-cvs-commit mailing list