]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool.m4: Update NetBSD postdeps for shared libraries
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Mon, 10 Feb 2025 19:28:06 +0000 (21:28 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Mon, 10 Feb 2025 19:57:25 +0000 (21:57 +0200)
* 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

index c677ccfdaae6b9f95c1ac4a0faa61edb8a4d2e2b..b57b8c3117f2e79c737150b1fce7846d0571c74e 100644 (file)
@@ -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*)