]> git.donarmstrong.com Git - lilypond.git/commitdiff
Clean-out some junk flags from python-config. Fixes stray g++ warnings.
authorJan Nieuwenhuizen <janneke@gnu.org>
Fri, 7 Nov 2008 08:30:43 +0000 (09:30 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Fri, 7 Nov 2008 08:30:43 +0000 (09:30 +0100)
See: http://bugs.python.org/issue3290.

stepmake/aclocal.m4

index e556dae0e1745ab63700ae902c4f8369a10e0310..b2e27613a4ed8bf796496ce5c05cea62ea5a8a6c 100644 (file)
@@ -1032,7 +1032,9 @@ AC_DEFUN(STEPMAKE_PYTHON_DEVEL, [
     AC_CHECK_PROGS(PYTHON_CONFIG, python-config, no)
 
     if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
-       PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags`
+        # Clean out junk: http://bugs.python.org/issue3290
+       # Python headers may need some -f* flags, leave them in.
+       PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/ -\(W\|D\|O\)\(\w\|-\)\+//g'`
        PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
     fi