branch: development
commit 8d9a120d0aaf7c63be909d33b67039103be5a8ab
Author: Ileana Dumitrescu <ileanadumitresc...@gmail.com>
AuthorDate: Mon Feb 10 21:28:06 2025 +0200

    libtool.m4: Update NetBSD postdeps for shared libraries
    
    * m4/libtool.m4: Linking a shared version of 'gcc' is not possible on
      NetBSD, since the shared version of the library is 'gcc_s'. postdeps
      have been updated to remove 'gcc' instances with sed.
---
 m4/libtool.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index c677ccfd..b57b8c31 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -7315,7 +7315,7 @@ if test yes != "$_lt_caught_CXX_error"; then
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
        fi
        # Workaround some broken pre-1.5 toolchains
-       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | 
$GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
+       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | 
$GREP conftest.$objext | $SED -e "s:--as-needed -lgcc_s --no-as-needed -lgcc 
-lc --as-needed -lgcc_s --no-as-needed -lgcc:--as-needed -lgcc_s:"'
        ;;
 
       *nto* | *qnx*)

Reply via email to