diff options
| author | jvoisin | 2022-03-28 22:04:17 +0200 |
|---|---|---|
| committer | jvoisin | 2022-03-28 22:04:17 +0200 |
| commit | 192a24a035d5ef887e4163925156502552b78c7d (patch) | |
| tree | 0981b17c4e5528ecd7977cc60390fbe56c82a24a | |
| parent | 8228d790c0a6e02435a31a95aa542deae59d5275 (diff) | |
Use `AC_PROG_CC` to make compilers behave correctly
| -rw-r--r-- | src/config.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.m4 b/src/config.m4 index 78ca6a2..9d41a86 100644 --- a/src/config.m4 +++ b/src/config.m4 | |||
| @@ -21,6 +21,8 @@ PHP_ARG_ENABLE(debug, whether to enable debug messages, | |||
| 21 | PHP_ARG_ENABLE(debug-stderr, whether to enable debug messages, | 21 | PHP_ARG_ENABLE(debug-stderr, whether to enable debug messages, |
| 22 | [ --enable-debug-stderr Enable debug messages], no, no) | 22 | [ --enable-debug-stderr Enable debug messages], no, no) |
| 23 | 23 | ||
| 24 | AC_PROG_CC() | ||
| 25 | |||
| 24 | CFLAGS="$CFLAGS" | 26 | CFLAGS="$CFLAGS" |
| 25 | CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter" | 27 | CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter" |
| 26 | CFLAGS="$CFLAGS -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2" | 28 | CFLAGS="$CFLAGS -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2" |
