]> 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>
Mon, 23 May 2016 20:25:32 +0000 (23:25 +0300)
cherry-picked e19c578b43ccf395f38d7825b027d5c18bc0f91a

php.spec

index 89f9389cb29ef18ad5f46e556f837288b3d628a2..6f2dc298c639f51e5a5d3424c8423758a3297c42 100644 (file)
--- 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 \
This page took 0.054863 seconds and 4 git commands to generate.