]> TLD Linux GIT Repositories - packages/php.git/blob - php-link-libs.patch
- sync patches with PLD
[packages/php.git] / php-link-libs.patch
1 --- php-7.3.0beta3/build/php.m4~        2018-08-28 13:26:36.000000000 +0300
2 +++ php-7.3.0beta3/build/php.m4 2018-09-05 18:56:49.744106256 +0300
3 @@ -1829,18 +1829,18 @@
4  dnl Wrapper for AC_CHECK_LIB.
5  dnl
6  AC_DEFUN([PHP_CHECK_LIBRARY], [
7 -  save_old_LDFLAGS=$LDFLAGS
8 +  save_old_LIBS=$LIBS
9    ac_stuff="$5"
10  
11    save_ext_shared=$ext_shared
12    ext_shared=yes
13 -  PHP_EVAL_LIBLINE([$]ac_stuff, LDFLAGS)
14 +  PHP_EVAL_LIBLINE([$]ac_stuff, LIBS)
15    AC_CHECK_LIB([$1],[$2],[
16 -    LDFLAGS=$save_old_LDFLAGS
17 +    LIBS=$save_old_LIBS
18      ext_shared=$save_ext_shared
19      $3
20    ],[
21 -    LDFLAGS=$save_old_LDFLAGS
22 +    LIBS=$save_old_LIBS
23      ext_shared=$save_ext_shared
24      unset ac_cv_lib_$1[]_$2
25      $4