]> git.donarmstrong.com Git - lilypond.git/commitdiff
Junk python-config CFLAGS more cleanly
authorJohn Mandereau <john.mandereau@gmail.com>
Wed, 10 Dec 2008 20:04:34 +0000 (21:04 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Wed, 10 Dec 2008 20:04:34 +0000 (21:04 +0100)
This fixes malformed g++ flags on some configurations.

stepmake/aclocal.m4

index 9e386f392261244fb2fabc34c9ca44e76a170fb3..77074a62dca865b94151d27e0416a3fd02a9966e 100644 (file)
@@ -956,7 +956,7 @@ AC_DEFUN(STEPMAKE_PYTHON_DEVEL, [
     if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
         # 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\|m\)\(\w\|-\|=\)\+//g'`
+       PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/ -\(W\|D\|O\|m\)\(\w\|-\|=\|,\)\+//g'`
        PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
     fi