debian/patches: Add 1002_stdc++11.patch. Use -std=c++11 (instead of -std=c++98) in CXXFLAGS.

This commit is contained in:
Mike Gabriel
2015-10-07 10:14:41 +02:00
parent dc67f549dc
commit 1f29cad8d6
2 changed files with 15 additions and 0 deletions

14
debian/patches/1002_stdc++11.patch vendored Normal file
View File

@ -0,0 +1,14 @@
Description: Enable -std=c++11 (instead of -std=c++98) via CXXFLAGS
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/configure.ac
+++ b/configure.ac
@@ -100,7 +100,7 @@
-Wcast-align -Wsign-compare \
-std=gnu89 \
$CFLAGS"
- CXXFLAGS="-Wall -std=c++98 $CXXFLAGS"
+ CXXFLAGS="-Wall -std=c++11 $CXXFLAGS"
else
AC_MSG_RESULT(no)
fi

View File

@ -1 +1,2 @@
1001_search-for-libsystemd-dev.patch
1002_stdc++11.patch