]> git.pld-linux.org Git - packages/php.git/commitdiff
pass our rpmldflags as EXTRA_LDFLAGS for as-needed (avoids unnecessary linking)
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 15 May 2016 13:06:10 +0000 (15:06 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 24 May 2016 20:15:38 +0000 (23:15 +0300)
cherry-picked e19c578b43ccf395f38d7825b027d5c18bc0f91a

php.spec

index 83791c3ca79f26dcd5979a10b6596b377e16912d..b2a38a6d2dd2af702dfd3217fb51516c38d76b02 100644 (file)
--- 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 \
This page took 0.469157 seconds and 4 git commands to generate.