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

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


commit 1c3544dd7118dcdc64caa0178fcfcdd528616952
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 89f9389..6f2dc29 100644
--- a/php.spec
+++ b/php.spec
@@ -2090,7 +2090,7 @@ exit 1
 %patch70 -p1
 %patch72 -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
@@ -2344,6 +2344,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/267a10e6de48ae731d58c052db62fdf4083a6a67



More information about the pld-cvs-commit mailing list