libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 1061dc30c708c41c1c40c13c5e81f0f65ddd96ef
parent 38a504c9802e60af217cdb5e235ca1c3f1eb48a2
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sat, 19 Mar 2022 14:59:11 +0300

configure: fixed order of compiler flags, fixed check

Diffstat:
Mconfigure.ac | 15+++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -3316,14 +3316,13 @@ int main(void) ) AS_VAR_IF([enable_san_address], ["yes"], [ - AS_VAR_IF([mhd_cv_cc_sanitizer_address],["yes"], - [ - AX_APPEND_FLAG([-D_FORTIFY_SOURCE=0], [san_CFLAGS]) - CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} ${user_CFLAGS}" - AX_APPEND_COMPILE_FLAGS([-Wp,-U_FORTIFY_SOURCE], [san_CFLAGS]) - ], - [AC_MSG_WARN([$CC does not support address sanitizer])] - ) + CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} ${user_CFLAGS}" + AX_APPEND_COMPILE_FLAGS([-Wp,-U_FORTIFY_SOURCE], [san_CFLAGS]) + AX_APPEND_FLAG([-D_FORTIFY_SOURCE=0], [san_CFLAGS]) + ], + [ + AS_CASE([$enable_sanitizers], [auto|auto-fallback], + [AC_MSG_WARN([$CC does not support address sanitizer])]) ] ) CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} ${user_CFLAGS}"