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

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


commit d2a0c44f366721d6e01e78a1feeaaf26a4f7b8ed
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 0420868..de91f82 100644
--- a/php.spec
+++ b/php.spec
@@ -2118,7 +2118,7 @@ gzip -dc %{SOURCE15} | tar xf - -C sapi/
 %patch257 -p1
 %patch258 -p1
 
-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
@@ -2317,6 +2317,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/7bc373d0c42a6368a76e49a03cde86cf1a279f0f



More information about the pld-cvs-commit mailing list