aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-01-01 17:04:23 +0100
committerdaniel <dwillmann@sysmocom.de>2021-01-08 02:32:33 +0000
commitcd7c7a74b7089925beb167e53ee3150f122ae52e (patch)
tree2463da437b28282bfa7aa3e964aa57dd3a9ffc60
parentddb3fbb0f2e88b5cc46809dcfac29eccea67d53f (diff)
configure.ac: define a c standard instead of using the compilers default
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0c8a73ff9..f1a4ed480 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,6 +39,9 @@ m4_ifdef([AX_CHECK_COMPILE_FLAG], [], [
AC_MSG_ERROR([Please install autoconf-archive; re-run 'autoreconf -fi' for it to take effect.])
])
+dnl use a defined standard across all builds and don't depend on compiler default
+CFLAGS="$CFLAGS -std=gnu11"
+
dnl checks for libraries
AC_SEARCH_LIBS([dlopen], [dl dld], [LIBRARY_DL="$LIBS";LIBS=""])
AC_SUBST(LIBRARY_DL)