[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Malformed g++ flags
From: |
John Mandereau |
Subject: |
Re: [PATCH] Malformed g++ flags |
Date: |
Tue, 09 Dec 2008 00:30:02 +0100 |
Le dimanche 07 décembre 2008 à 23:29 +0100, John Mandereau a écrit :
> With current Git master C++ flags are incorrect on my system:
>
> cp -p /home/lilydev/git/lily/master/config.hh out/config.hh
> rm -f ./out/all-font-metrics.dep;
> DEPENDENCIES_OUTPUT="./out/all-font-metrics.dep ./out/all-font-metrics.o" g++
> -c -Woverloaded-virtual -I/usr/include/python2.5 -I/usr/include/python2.5
> -fno-strict-aliasing -g -pipe,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -fPIC -DHAVE_CONFIG_H -DNDEBUG
> -I./include -I./out -I../flower/include -I../flower/./out -I../flower/include
> -O2 -finline-functions -g -pipe -pthread -I/usr/include/freetype2
> -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0
> -I/usr/lib64/glib-2.0/include -Wno-pmf-conversions -W -Wall -Wconversion
> -o out/all-font-metrics.o all-font-metrics.cc
> g++: unrecognized option '-pipe,-D_FORTIFY_SOURCE=2'
>
>
> The following patch fixes it for me; is it OK to apply?
Sorry, the patch I sent had an incorrect regular expression: I meant
=============
diff --git a/stepmake/aclocal.m4 b/stepmake/aclocal.m4
index 9e386f3..77074a6 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
============
John