From: Guus Sliepen Date: Tue, 16 Jun 2020 19:34:52 +0000 (+0200) Subject: Fix compiling the C++ examples. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=ac1893fee5773e3c8f0c5ec0f24d5c0feaa0f7f4;p=meshlink Fix compiling the C++ examples. --- diff --git a/configure.ac b/configure.ac index f0617f32..1047dc1b 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], [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.