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

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


commit 567fbbd00def6e671f62135f84496aa56b37bed5
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 | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/php.spec b/php.spec
index 83791c3..b2a38a6 100644
--- a/php.spec
+++ b/php.spec
@@ -1963,6 +1963,9 @@ done
 # causes regression -> magic_quotes_gpc setting cannot be changed
 #%%patch402 -p1 -b .bug-323016
 
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
+
 # conflict seems to be resolved by recode patches
 rm -f ext/recode/config9.m4
 
@@ -2074,6 +2077,7 @@ for sapi in $sapis; do
 
 	%configure \
 	FORCE_APACHE_VERSION="${apache_ver}" \
+	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/eb873ad4fcccef58553d2f73ba7a941d46b89a29



More information about the pld-cvs-commit mailing list