[yoda-svn] yoda: More portable C++11 flag setting in Python distutils build

YODA Mercurial yoda at projects.hepforge.org
Wed Apr 13 13:45:01 BST 2016


details:   https://yoda.hepforge.org/hg/yoda/rev/e8188dd80439
branches:  
changeset: 1236:e8188dd80439
user:      Andy Buckley <andy at insectnation.org>
date:      Wed Apr 13 13:36:41 2016 +0100
description:
More portable C++11 flag setting in Python distutils build

diffs (21 lines):

--- a/configure.ac	Wed Apr 13 11:39:53 2016 +0100
+++ b/configure.ac	Wed Apr 13 13:36:41 2016 +0100
@@ -145,6 +145,7 @@
 ## Finish Python extension testing
 if test x$enable_pyext == xyes; then
   ## Set extra Python extension build flags (to cope with Cython output code oddities)
+  PYEXT_CXXFLAGS=$CXXFLAGS
   AC_CEDAR_CHECKCXXFLAG([-Wno-unused-but-set-variable], [PYEXT_CXXFLAGS="$PYEXT_CXXFLAGS -Wno-unused-but-set-variable"])
   AC_CEDAR_CHECKCXXFLAG([-Wno-sign-compare], [PYEXT_CXXFLAGS="$PYEXT_CXXFLAGS -Wno-sign-compare"])
   AC_CEDAR_CHECKCXXFLAG([-Wno-strict-prototypes], [PYEXT_CXXFLAGS="$PYEXT_CXXFLAGS -Wno-strict-prototypes"])
--- a/pyext/setup.py.in	Wed Apr 13 11:39:53 2016 +0100
+++ b/pyext/setup.py.in	Wed Apr 13 13:36:41 2016 +0100
@@ -11,7 +11,7 @@
 libdir = os.path.abspath("@top_builddir@/src/.libs")
 static_files = ["yoda/errors.cpp"]
 
-BASE_COMPILE_ARGS = "-std=c++11 -I at prefix@/include -I../include @PYEXT_CXXFLAGS@".split()
+BASE_COMPILE_ARGS = "@PYEXT_CXXFLAGS@ -I at prefix@/include -I../include".split()
 BASE_LINK_ARGS = ["-L at prefix@/lib"]
 
 # Dependencies used to trigger rebuild


More information about the yoda-svn mailing list