mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Autotools: Update ax_check_compile_flag.m4 to serial 11 (#19127)
```sh wget -O build/ax_check_compile_flag.m4 \ https://cgit.git.savannah.gnu.org/cgit/autoconf-archive.git/plain/m4/ax_check_compile_flag.m4 ``` New version of AX_CHECK_COMPILE_FLAG macro now adds the -Werror flag automatically, if GNU-compatible compiler is detected.
This commit is contained in:
parent
7bf79ab666
commit
f64c6248b5
7 changed files with 25 additions and 26 deletions
|
@ -5,16 +5,14 @@ dnl Check for strtoll, atoll
|
|||
AC_CHECK_FUNCS([strtoll atoll])
|
||||
|
||||
AX_CHECK_COMPILE_FLAG([-Wno-implicit-fallthrough],
|
||||
[PHP_DATE_CFLAGS="$PHP_DATE_CFLAGS -Wno-implicit-fallthrough"],,
|
||||
[-Werror])
|
||||
[PHP_DATE_CFLAGS="$PHP_DATE_CFLAGS -Wno-implicit-fallthrough"])
|
||||
|
||||
PHP_DATE_CFLAGS="$PHP_DATE_CFLAGS -DHAVE_TIMELIB_CONFIG_H=1"
|
||||
PHP_TIMELIB_CFLAGS="$PHP_DATE_CFLAGS"
|
||||
PHP_DATE_CFLAGS="$PHP_DATE_CFLAGS -I@ext_builddir@/lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"
|
||||
|
||||
AX_CHECK_COMPILE_FLAG([-fwrapv],
|
||||
[PHP_TIMELIB_CFLAGS="$PHP_TIMELIB_CFLAGS -fwrapv"],,
|
||||
[-Werror])
|
||||
[PHP_TIMELIB_CFLAGS="$PHP_TIMELIB_CFLAGS -fwrapv"])
|
||||
|
||||
timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c lib/parse_posix.c
|
||||
lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue