From: Martin Storsjö Date: Mon, 19 Aug 2019 10:34:51 +0000 (+0300) Subject: Allow statically linking compiler support libraries when linking a library X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f505131b5f29b0de6338bf9d13b7ceadf617d96;p=thirdparty%2Flibtool.git Allow statically linking compiler support libraries when linking a library For cases with deplibs_check_method="file_magic ..." (as it is for mingw), there were previously no way that a static library could be accepted here. --- diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index a948158ed..38b56a711 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -6101,8 +6101,15 @@ func_mode_link () fi case $linkmode in lib) - # Linking convenience modules into shared libraries is allowed, - # but linking other static libraries is non-portable. + # Linking convenience modules and compiler provided static libraries + # into shared libraries is allowed, but linking other static + # libraries is non-portable. + case $deplib in + */libgcc*.$libext | */libclang_rt*.$libext) + deplibs="$deplib $deplibs" + continue + ;; + esac case " $dlpreconveniencelibs " in *" $deplib "*) ;; *)