This hobbyist OS has already been added to `config.sub` (and `config.guess` respectively) some time ago, but was still lacking upstream support for building libraries using libtool.
Since it is a relatively up-to-date system with ports of modern software, "adding support" mostly just means adding empty cases to avoid falling though to the most basic behavior (that guarantees compatibility at the expense of disabling everything that might be critical). * m4/libtool.m4: Add support for SerenityOS. --- m4/libtool.m4 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 66b12b5a..f2ef36bb 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -2999,6 +2999,17 @@ rdos*) dynamic_linker=no ;; +serenity*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + dynamic_linker='SerenityOS LibELF' + ;; + solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no @@ -3595,6 +3606,10 @@ rdos*) lt_cv_deplibs_check_method=pass_all ;; +serenity*) + lt_cv_deplibs_check_method=pass_all + ;; + solaris*) lt_cv_deplibs_check_method=pass_all ;; @@ -4469,6 +4484,8 @@ m4_if([$1], [CXX], [ ;; psos*) ;; + serenity*) + ;; solaris*) case $cc_basename in CC* | sunCC*) @@ -4811,6 +4828,9 @@ m4_if([$1], [CXX], [ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; + serenity*) + ;; + solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' @@ -5917,6 +5937,9 @@ _LT_EOF _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; + serenity*) + ;; + solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test yes = "$GCC"; then @@ -7237,6 +7260,9 @@ if test yes != "$_lt_caught_CXX_error"; then _LT_TAGVAR(ld_shlibs, $1)=no ;; + serenity*) + ;; + sunos4*) case $cc_basename in CC*) -- 2.44.0