]> git.meshlink.io Git - meshlink/commitdiff
Don't overwrite CFLAGS when adding -std=c11.
authorGuus Sliepen <guus@meshlink.io>
Mon, 15 Jun 2020 08:03:36 +0000 (10:03 +0200)
committerGuus Sliepen <guus@meshlink.io>
Mon, 15 Jun 2020 08:03:36 +0000 (10:03 +0200)
configure.ac

index 7dd0736ad8cd52ca9fa2de3d201074d3568b6526..e397998a2e8dfba122bc541421dcebc3c471e171 100644 (file)
@@ -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.