mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Autotools: Use LIBS for appending -lonig (#14936)
LDFLAGS is by convention used more for linker options like -s and -L. The -l option should go to LIBS instead. This does the same check but is more understandable in the logs and M4 code.
This commit is contained in:
parent
fb5d64c300
commit
1ee4bf1c5f
1 changed files with 3 additions and 3 deletions
|
@ -57,10 +57,10 @@ AC_DEFUN([PHP_MBSTRING_SETUP_MBREGEX], [
|
||||||
|
|
||||||
AC_CACHE_CHECK([if oniguruma has an invalid entry for KOI8 encoding],
|
AC_CACHE_CHECK([if oniguruma has an invalid entry for KOI8 encoding],
|
||||||
[php_cv_lib_onig_invalid_koi8],
|
[php_cv_lib_onig_invalid_koi8],
|
||||||
[save_old_LDFLAGS=$LDFLAGS
|
[save_old_LIBS=$LIBS
|
||||||
|
LIBS="$LIBS $MBSTRING_SHARED_LIBADD"
|
||||||
save_old_CFLAGS=$CFLAGS
|
save_old_CFLAGS=$CFLAGS
|
||||||
CFLAGS="$CFLAGS $ONIG_CFLAGS"
|
CFLAGS="$CFLAGS $ONIG_CFLAGS"
|
||||||
PHP_EVAL_LIBLINE([$MBSTRING_SHARED_LIBADD], [LDFLAGS])
|
|
||||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <oniguruma.h>
|
#include <oniguruma.h>
|
||||||
|
@ -68,7 +68,7 @@ AC_DEFUN([PHP_MBSTRING_SETUP_MBREGEX], [
|
||||||
[return (intptr_t)(ONIG_ENCODING_KOI8 + 1);])],
|
[return (intptr_t)(ONIG_ENCODING_KOI8 + 1);])],
|
||||||
[php_cv_lib_onig_invalid_koi8=no],
|
[php_cv_lib_onig_invalid_koi8=no],
|
||||||
[php_cv_lib_onig_invalid_koi8=yes])
|
[php_cv_lib_onig_invalid_koi8=yes])
|
||||||
LDFLAGS=$save_old_LDFLAGS
|
LIBS=$save_old_LIBS
|
||||||
CFLAGS=$save_old_CFLAGS])
|
CFLAGS=$save_old_CFLAGS])
|
||||||
AS_VAR_IF([php_cv_lib_onig_invalid_koi8], [yes],
|
AS_VAR_IF([php_cv_lib_onig_invalid_koi8], [yes],
|
||||||
[AC_DEFINE([PHP_ONIG_BAD_KOI8_ENTRY], [1],
|
[AC_DEFINE([PHP_ONIG_BAD_KOI8_ENTRY], [1],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue