]> git.meshlink.io Git - meshlink/blobdiff - configure.ac
Fix compiling the C++ examples.
[meshlink] / configure.ac
index f0617f3206de57c1f8ccb6de7e785a2f8207990c..1047dc1b7101b69f3419f3c244bc306403305d0e 100644 (file)
@@ -54,7 +54,7 @@ if test -d /sw/lib ; then
   LIBS="$LIBS -L/sw/lib"
 fi
 
-AX_CHECK_COMPILE_FLAG([-std=c11], [CPPFLAGS="-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.