From 6f6740ae29849f8da1f7b550a5d36f190f755ec6 Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Wed, 10 Dec 2008 21:04:34 +0100 Subject: [PATCH] Junk python-config CFLAGS more cleanly This fixes malformed g++ flags on some configurations. --- stepmake/aclocal.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmake/aclocal.m4 b/stepmake/aclocal.m4 index 9e386f3922..77074a62dc 100644 --- a/stepmake/aclocal.m4 +++ b/stepmake/aclocal.m4 @@ -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 -- 2.39.2