From d0acd3e7dfb937d46a5b9f1c64b8b3bd0b9d99b7 Mon Sep 17 00:00:00 2001 From: Thomas Jahns Date: Fri, 17 Jun 2016 14:16:05 +0200 Subject: [PATCH] Fix for gfortran5 on FreeBSD. When verbosely linking with gfortran5 on FreeBSD 10.3, the driver emits a line like the following: Driving: gfortran5 -shared -v conftest.o -l gfortran -l m -shared-libgcc Which leads to an incorrect postdeps_FC variable at configure time and consequently incorrect settings in libtool. --- m4/libtool.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index ee292af..9ed976f 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -6444,7 +6444,7 @@ if test yes != "$_lt_caught_CXX_error"; 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 -v "^Configured with:" | $GREP "\-L"' + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^\(Configured with\|Driving\):" | $GREP "\-L"' else GXX=no -- 2.7.0.79.gdc08a19