[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: discard “Configured with” line from gcc -v output
From: |
Ralf Wildenhues |
Subject: |
Re: discard “Configured with” line from gcc -v output |
Date: |
Sun, 1 Nov 2009 18:43:55 +0100 |
User-agent: |
Mutt/1.5.20 (2009-08-09) |
<http://thread.gmane.org/gmane.comp.gcc.patches/192666>
Hello, and sorry for the delay,
* Alexandre Oliva wrote on Wed, Sep 09, 2009 at 12:27:17AM CEST:
> On Sep 8, 2009, Ralf Wildenhues wrote:
>
> > One possibility would be to grep out "Configured with" lines. I'll look
> > into it.
>
> That ought to work. Thanks!
I'm testing this in Libtool right now. Please speak up if there is a
good reason against this, otherwise I'll be pushing this to git Libtool
later.
I only changed those output_verbose_link_cmd instances where GCC is
involved in linking.
With this done, I intend to rebuild GCC (and src) with current git
Libtool to also fix a number of other pending GCC bugs.
Thanks,
Ralf
2009-11-01 Alexandre Oliva <address@hidden>
Ralf Wildenhues <address@hidden>
Fix verbose link extraction for multiply reconfigured GCC.
* libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Drop GCC lines
"Configured with" that may contain unrelated flags.
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index 02b49c9..206940e 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -5549,7 +5549,7 @@ if test "$_lt_caught_CXX_error" != yes; then
# Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used when
# linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 |
$GREP "\-L"'
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 |
$GREP -v "^Configured with:" | $GREP "\-L"'
else
GXX=no
@@ -6214,7 +6214,7 @@ if test "$_lt_caught_CXX_error" != yes; then
# Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used when
# linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext
2>&1 | $GREP "\-L"'
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext
2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
else
# FIXME: insert proper C++ library support
@@ -6298,7 +6298,7 @@ if test "$_lt_caught_CXX_error" != yes; then
# Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used when
# linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v
conftest.$objext 2>&1 | $GREP "\-L"'
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v
conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
else
# g++ 2.7 appears to require `-G' NOT `-shared' on this
# platform.
@@ -6309,7 +6309,7 @@ if test "$_lt_caught_CXX_error" != yes; then
# Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used when
# linking a shared library.
- output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext
2>&1 | $GREP "\-L"'
+ output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext
2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
fi
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: discard “Configured with” line from gcc -v output,
Ralf Wildenhues <=