From 776617d01d354873b137ab2adaf3997af01d6eb1 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Fri, 7 Nov 2008 09:30:43 +0100 Subject: [PATCH] Clean-out some junk flags from python-config. Fixes stray g++ warnings. See: http://bugs.python.org/issue3290. --- stepmake/aclocal.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmake/aclocal.m4 b/stepmake/aclocal.m4 index e556dae0e1..b2e27613a4 100644 --- a/stepmake/aclocal.m4 +++ b/stepmake/aclocal.m4 @@ -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 -- 2.39.5