summaryrefslogtreecommitdiff
path: root/buildlib/environment.mak.in
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-07-11 20:21:45 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2015-08-10 17:27:17 +0200
commitb17d75804566ced55109b4b0498b7ed0faad389b (patch)
tree5a20b95cf87d3887b0cc7ddebf38b1450f6b72c0 /buildlib/environment.mak.in
parentc2a4a8dded2dfb56dbcab9689b6cb4b96c9999b6 (diff)
enforce GCC5 C++11 ABI and usage
The library(s) make an API break anyhow, so lets ensure we use gcc5 for this break and enable c++11 as standard as gcc6 will use it as default and should provide some API parts for c++11 – beside that it can't hurt to use c++11 itself. We just have to keep our headers c++03 compatible to not enforce a standrd bump in our reverse dependencies.
Diffstat (limited to 'buildlib/environment.mak.in')
-rw-r--r--buildlib/environment.mak.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildlib/environment.mak.in b/buildlib/environment.mak.in
index 8ea7a05ba..287205181 100644
--- a/buildlib/environment.mak.in
+++ b/buildlib/environment.mak.in
@@ -9,7 +9,7 @@ PACKAGE_MAIL = @PACKAGE_MAIL@
CC = @CC@
CPPFLAGS+= @CPPFLAGS@ @DEFS@ -D_REENTRANT -D_FORTIFY_SOURCE=2
CXX = @CXX@
-CXXFLAGS+= @CXXFLAGS@ -Wall -Wextra
+CXXFLAGS+= @CXXFLAGS@ -std=c++11 -Wall -Wextra
CXXFLAGS+= -Wcast-align -Wlogical-op -Wredundant-decls -Wmissing-declarations -Wunsafe-loop-optimizations
CXXFLAGS+= -Wctor-dtor-privacy -Wdisabled-optimization -Winit-self -Wmissing-include-dirs -Wnoexcept -Wsign-promo -Wundef
# suggests methods which already have such an attribute