From 567fbbd00def6e671f62135f84496aa56b37bed5 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 15 May 2016 15:06:10 +0200 Subject: [PATCH 1/1] 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 \ -- 2.44.0