From: Guus Sliepen Date: Mon, 15 Jun 2020 08:03:36 +0000 (+0200) Subject: Don't overwrite CFLAGS when adding -std=c11. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=6d0820fda557de28c014b8ad4c40c385d23029a7;p=meshlink Don't overwrite CFLAGS when adding -std=c11. --- diff --git a/configure.ac b/configure.ac index 7dd0736a..e397998a 100644 --- a/configure.ac +++ b/configure.ac @@ -54,7 +54,7 @@ if test -d /sw/lib ; then LIBS="$LIBS -L/sw/lib" fi -AX_CHECK_COMPILE_FLAG([-std=c11], [CFLAGS="-std=c11"]) +AX_CHECK_COMPILE_FLAG([-std=c11], [CFLAGS="$CFLAGS -std=c11"]) dnl Compiler hardening flags dnl No -fstack-protector-all because it doesn't work on all platforms or architectures.