diff options
author | Oliver Smith <osmith@sysmocom.de> | 2019-09-18 11:15:28 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2019-09-18 14:28:43 +0200 |
commit | 04797b1e35a64fcdd7945fc4ff696e806792233c (patch) | |
tree | 4c7492260ba602823dba76bad4130d09d41fa910 | |
parent | 2beb1b85e05ba34c1fc3291b6fe177775bffb235 (diff) |
configure.ac: set C and C++ dialects
Make sure that the compiler always assumes the same C dialect, to
prevent unexpected compiler errors when building with older compilers
(on other Linux distrubtions like in OBS, or in docker).
Use gnu89 and gnu++03, because that is what the code currently compiles
with.
Related: https://lists.osmocom.org/pipermail/openbsc/2019-September/013030.html
Related: OS#3598
Change-Id: Ia57ba101627e3cc0babeca82631e207a3e2e0960
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5ecd1339..2f29047f 100644 --- a/configure.ac +++ b/configure.ac @@ -9,6 +9,9 @@ AC_CONFIG_AUX_DIR([.]) AM_INIT_AUTOMAKE([dist-bzip2]) AC_CONFIG_TESTDIR(tests) +CXXFLAGS="$CXXFLAGS -std=gnu++03" +CFLAGS="$CFLAGS -std=gnu89" + dnl kernel style compile messages m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |