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

glen glen at pld-linux.org
Tue May 24 22:12:50 CEST 2016


commit b7a18119338d0b1a80f26d81f151df2562cdc341
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 025ca4f..f047af2 100644
--- a/php.spec
+++ b/php.spec
@@ -2050,7 +2050,7 @@ exit 1
 %patch66 -p1
 %patch67 -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
@@ -2286,6 +2286,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/2e8cb887e446747e6ce6da6dff99e982918c557a



More information about the pld-cvs-commit mailing list