From: Alex Ameen Date: Mon, 16 May 2022 05:07:17 +0000 (-0500) Subject: Revert "libtool: permit compiler libs in shlibs" X-Git-Tag: v2.5.0~88 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6132006b5fb6b95f31c30a972fbb829f93e1878b;p=thirdparty%2Flibtool.git Revert "libtool: permit compiler libs in shlibs" This reverts commit 1d2577357ee704da2d6d7c7da119ad82ba8ca172. --- diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 22500a9d6..a5f21a1db 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -5900,15 +5900,6 @@ func_mode_link () lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. - case "$deplib" in - # Linking certain compiler provided static libraries, while - # non-portable, is reasonable safe and practically necessary on - # certain platforms. - */libgcc*.$libext | */libclang_rt*.$libext) - deplibs="$deplib $deplibs" - continue - ;; - esac case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index ab5af3351..79a2451ef 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -7554,7 +7554,7 @@ if AC_TRY_EVAL(ac_compile); then for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in - -L* | -R* | -l* | */clang_rt*.a) + -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" ||