From: Alexandre Oliva Date: Sun, 1 Nov 2009 17:41:43 +0000 (+0100) Subject: Fix verbose link extraction for multiply reconfigured GCC. X-Git-Tag: v2.2.7b~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d3560143c215704de37550773ba87fa7cf69678;p=thirdparty%2Flibtool.git 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. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 057f9a4e4..34995a24b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-11-04 Alexandre Oliva + Ralf Wildenhues + + 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. + 2009-11-02 Eric Blake Allow gcc builds with -Wall -Werror. diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 02b49c9a4..206940e96 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'