branch: development commit b755144e964072518d6451b39ca76d968f41a35b Author: mintsuki <mints...@protonmail.com> AuthorDate: Wed Nov 20 18:34:58 2024 +0100
libtool: Replace support for ironclad* with *-mlibc The main Ironclad kernel-based distribution (Gloire) uses the mlibc C library for its userland, and that is what commit bd15931e57f5171732a1a911cbbad9b5e03d0308 was intended to support. There is no reason this support should be Ironclad-specific, as there are many other OSes that use mlibc, most prominently "Managarm", which is already supported by gnu-config. --- m4/libtool.m4 | 18 +++++++++--------- m4/ltdl.m4 | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 04a02d80..f220c667 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -2996,7 +2996,7 @@ netbsd*) hardcode_into_libs=yes ;; -ironclad*) +*-mlibc) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no @@ -3674,7 +3674,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; -ironclad*) +*-mlibc) lt_cv_deplibs_check_method=pass_all ;; @@ -4563,7 +4563,7 @@ m4_if([$1], [CXX], [ ;; netbsd* | netbsdelf*-gnu) ;; - ironclad*) + *-mlibc) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise @@ -4921,7 +4921,7 @@ m4_if([$1], [CXX], [ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; - ironclad*) + *-mlibc) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' @@ -5408,7 +5408,7 @@ _LT_EOF fi ;; - ironclad*) + *-mlibc) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; @@ -5956,7 +5956,7 @@ _LT_EOF esac ;; - ironclad*) + *-mlibc) ;; netbsd* | netbsdelf*-gnu) @@ -7262,9 +7262,9 @@ if test yes != "$_lt_caught_CXX_error"; then esac ;; - ironclad*) - _LT_TAGVAR(ld_shlibs, $1)=yes - ;; + *-mlibc) + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then diff --git a/m4/ltdl.m4 b/m4/ltdl.m4 index 4f20cee2..c7790ffd 100644 --- a/m4/ltdl.m4 +++ b/m4/ltdl.m4 @@ -495,7 +495,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen], # at 6.2 and later dlopen does load deplibs. lt_cv_sys_dlopen_deplibs=yes ;; - ironclad*) + *-mlibc) lt_cv_sys_dlopen_deplibs=yes ;; netbsd* | netbsdelf*-gnu)