[packages/php/PHP_5_4] pass our rpmldflags as EXTRA_LDFLAGS for as-needed (avoids unnecessary linking)

glen glen at pld-linux.org
Tue May 24 22:13:21 CEST 2016


commit 8f0e4b77d1b8be09aca58c3a53818017f0f85df7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun May 15 15:06:10 2016 +0200

    pass our rpmldflags as EXTRA_LDFLAGS for as-needed (avoids unnecessary linking)
    
    cherry-picked e19c578b43ccf395f38d7825b027d5c18bc0f91a

 php.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/php.spec b/php.spec
index c2fff0e..0bacc30 100644
--- a/php.spec
+++ b/php.spec
@@ -1952,7 +1952,7 @@ cp -p php.ini-production php.ini
 %patch71 -p1
 %endif
 
-sed -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
+%{__sed} -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
 
 # cleanup backups after patching
 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
@@ -2175,6 +2175,7 @@ for sapi in $sapis; do
 	esac
 
 	%configure \
+	EXTRA_LDFLAGS="%{rpmldflags}" \
 	$sapi_args \
 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
 	--cache-file=config.cache \
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list