summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-01-05 22:19:03 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-01-05 22:24:37 +0700
commiteee91ab17d91b99f4f6d315be883610974ee726a (patch)
treee0e62ed6ed93ec25533abb76525629f533230a4a
parent7a50aab31ff682ebca5fbddba19f50e6a1212e19 (diff)
host/*/configure.ac: set -std=gnu11
Avoid using different dialects by accident (and resulting compiler errors if compiler assumes a different dialect), like in [1]. Related: https://lists.osmocom.org/pipermail/openbsc/2019-September/013030.html Related: https://lists.osmocom.org/pipermail/openbsc/2021-January/013360.html Related: [1] libosmocore.git I72310886bef4db635078b75715c9d98ee45391cc Change-Id: I48ec1703de04f40ea530f4b4442084fdc94dc966
-rw-r--r--src/host/gprsdecode/configure.ac2
-rw-r--r--src/host/layer23/configure.ac2
-rw-r--r--src/host/osmocon/configure.ac2
-rw-r--r--src/host/virt_phy/configure.ac2
4 files changed, 8 insertions, 0 deletions
diff --git a/src/host/gprsdecode/configure.ac b/src/host/gprsdecode/configure.ac
index 8da68c80..734cbd30 100644
--- a/src/host/gprsdecode/configure.ac
+++ b/src/host/gprsdecode/configure.ac
@@ -2,6 +2,8 @@ dnl Process this file with autoconf to produce a configure script
AC_INIT([gprsdecode], [0.0.0])
AM_INIT_AUTOMAKE
+CFLAGS="$CFLAGS -std=gnu11"
+
dnl kernel style compile messages
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
diff --git a/src/host/layer23/configure.ac b/src/host/layer23/configure.ac
index 053cf58a..85765ae4 100644
--- a/src/host/layer23/configure.ac
+++ b/src/host/layer23/configure.ac
@@ -2,6 +2,8 @@ dnl Process this file with autoconf to produce a configure script
AC_INIT([layer23], [0.0.0])
AM_INIT_AUTOMAKE
+CFLAGS="$CFLAGS -std=gnu11"
+
dnl kernel style compile messages
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
diff --git a/src/host/osmocon/configure.ac b/src/host/osmocon/configure.ac
index 556f60ba..4195ecd7 100644
--- a/src/host/osmocon/configure.ac
+++ b/src/host/osmocon/configure.ac
@@ -5,6 +5,8 @@ AC_INIT([osmocon],
AM_INIT_AUTOMAKE([dist-bzip2])
+CFLAGS="$CFLAGS -std=gnu11"
+
dnl kernel style compile messages
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
diff --git a/src/host/virt_phy/configure.ac b/src/host/virt_phy/configure.ac
index 97c2e191..2a29bc8b 100644
--- a/src/host/virt_phy/configure.ac
+++ b/src/host/virt_phy/configure.ac
@@ -3,6 +3,8 @@ AC_INIT([virtphy], 0.0.0)
AM_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([foreign dist-bzip2 subdir-objects])
+CFLAGS="$CFLAGS -std=gnu11"
+
dnl kernel style compile messages
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])