diff --git a/bindings/python/compile_flags.in b/bindings/python/compile_flags.in index 1de90eb8e..c27e5a933 100644 --- a/bindings/python/compile_flags.in +++ b/bindings/python/compile_flags.in @@ -1 +1 @@ --I@top_srcdir@/include @COMPILETIME_OPTIONS@ @CXXFLAGS@ @CPPFLAGS@ @BOOST_CPPFLAGS@ @OPENSSL_INCLUDES@ +-I@top_srcdir@/include @COMPILETIME_OPTIONS@ @CPPFLAGS@ @BOOST_CPPFLAGS@ @CXXFLAGS@ @PYTHON_CXXFLAGS@ @OPENSSL_INCLUDES@ diff --git a/configure.ac b/configure.ac index 5d12384da..da1facbad 100644 --- a/configure.ac +++ b/configure.ac @@ -524,6 +524,9 @@ AC_SUBST(DEBUGFLAGS) AC_SUBST(PYTHON_INSTALL_PARAMS) AC_SUBST(COMPILETIME_OPTIONS) +# Disable deprecated warnings for the Python binding builds. +PYTHON_CXXFLAGS="${PYTHON_CXXFLAGS} -Wno-deprecated-declarations" +AC_SUBST(PYTHON_CXXFLAGS) # Try to guess real git revision if any, fallback to hardcoded otherwise GIT_REVISION=`git log -1 --format=format:%h 2>/dev/null`