From 6132006b5fb6b95f31c30a972fbb829f93e1878b Mon Sep 17 00:00:00 2001 From: Alex Ameen Date: Mon, 16 May 2022 00:07:17 -0500 Subject: [PATCH] Revert "libtool: permit compiler libs in shlibs" This reverts commit 1d2577357ee704da2d6d7c7da119ad82ba8ca172. --- build-aux/ltmain.in | 9 --------- m4/libtool.m4 | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) 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" || -- 2.47.3