]> git.meshlink.io Git - meshlink/commitdiff
Fix compiling the C++ examples.
authorGuus Sliepen <guus@meshlink.io>
Tue, 16 Jun 2020 19:34:52 +0000 (21:34 +0200)
committerGuus Sliepen <guus@meshlink.io>
Wed, 24 Jun 2020 20:18:21 +0000 (22:18 +0200)
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.