aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README4
-rw-r--r--bindings/python/setup.py.in1
-rw-r--r--configure.ac2
3 files changed, 5 insertions, 2 deletions
diff --git a/README b/README
index 402b140..77eec35 100644
--- a/README
+++ b/README
@@ -25,7 +25,9 @@ required:
Requirements for the C++ bindings:
- libswo >= 0.1.0
- - g++ (>= 4.7) or Clang++ (>= 3.0)
+ - C++ compiler with C++11 support, e.g.
+ - GCC >= 4.7
+ - Clang >= 3.0
Requirements for the Python bindings:
diff --git a/bindings/python/setup.py.in b/bindings/python/setup.py.in
index a67f99c..f70c834 100644
--- a/bindings/python/setup.py.in
+++ b/bindings/python/setup.py.in
@@ -35,6 +35,7 @@ setup(
ext_modules = [
Extension('_swopy',
sources = ['swopy_wrap.cxx'],
+ extra_compile_args = ['-std=c++11'],
library_dirs = [join(builddir, 'bindings/cxx/.libs')],
libraries = ['swocxx'],
include_dirs = [srcdir, join(builddir, 'libswo'),
diff --git a/configure.ac b/configure.ac
index 888b65d..c44b819 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,7 +33,7 @@ AM_INIT_AUTOMAKE([foreign -Wall -Werror])
# visibility for all non-static symbols by default with -fvisibility=hidden.
C_CXX_FLAGS="-Wall -Wextra -Werror -fvisibility=hidden"
LIBSWO_CFLAGS="$C_CXX_FLAGS"
-LIBSWO_CXXFLAGS="$C_CXX_FLAGS"
+LIBSWO_CXXFLAGS="-std=c++11 $C_CXX_FLAGS"
# Checks for programs.
AC_PROG_CC