aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-29 09:56:55 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-29 10:06:29 +0200
commita99d95e3afc528829f657e37f0572ac78bf06d4b (patch)
treeb11dc0ca5c9fe104120d1446427b6618188c3151 /tests
parente500e2e5d1d44f31e0fffeda9a1e272e8fb0320c (diff)
llc/test: Explicitly enable extended initialiser lists
To support extended initialiser lists some platforms (at least debian squeeze) require to add -std=c++0x or -std=gnu++0x to CXXFLAGS. While that option is deprecated on newer platforms (at least gcc 4.8) this options is still supported on every platform currently in use. This commit adds -std=gnu++0x to the CXXFLAGS used to compile LlcTest.cpp. Sponsored-by: On-Waves ehf
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 5d7aab0..861552f 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -66,6 +66,10 @@ llc_LlcTest_LDADD = \
llc_LlcTest_LDFLAGS = \
-Wl,-u,bssgp_prim_cb
+# Compatibility with Debian Squeeze
+llc_LlcTest_CXXFLAGS = \
+ -std=gnu++0x
+
llist_LListTest_SOURCES = llist/LListTest.cpp
llist_LListTest_LDADD = \
$(LIBOSMOCORE_LIBS) \