From 76fa76d7fee18915a19cd992bd887302cb2d8961 Mon Sep 17 00:00:00 2001 From: Thomas Jahns <jahns@dkrz.de> Date: Thu, 22 Aug 2019 13:57:52 +0200 Subject: [PATCH] Add work-around for Cray ftn+CC. * When CXX=CC and FC=ftn are used simultaneously on a CCE 8.7 system, ftn inherits the output_verbose_link_cmd as postdeps from the C++ tests and everything goes wrong afterwards even for non-shared archives. --- m4/acx_use_libtool_configuration.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/m4/acx_use_libtool_configuration.m4 b/m4/acx_use_libtool_configuration.m4 index 68aec3cae..a9993745a 100644 --- a/m4/acx_use_libtool_configuration.m4 +++ b/m4/acx_use_libtool_configuration.m4 @@ -92,7 +92,8 @@ dnl newer PGI or NAG configurations particularly well [ tmp_sharedflag='-Wl,-shared'], [ tmp_sharedflag='-Wl,-shared' tmp_compiler_flags='`echo \$compiler_flags | sed -e '"'"'s/ -W@<:@cl@:>@,-no-pie\\b//g'"'"'`']))dnl - m4_pushdef([_LT_SYS_HIDDEN_LIBDEPS],m4_bpatsubst(m4_dquote( + m4_pushdef([_LT_SYS_HIDDEN_LIBDEPS],[AS_UNSET([output_verbose_link_cmd])] + m4_bpatsubst(m4_dquote( m4_defn([_LT_SYS_HIDDEN_LIBDEPS])),[test x-\([LR]\) = "\$p"], [test x-\1 = x"$p"]))])dnl LT_INIT([$1]) -- GitLab