From 23519121db9ad50d0229ea3a1de0d1f72b6cb361 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sun, 29 May 2022 15:01:28 +0200 Subject: [PATCH] libtool: Add support for SerenityOS 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 a80c506dc..1a9bedc8c 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -3087,6 +3087,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 @@ -3686,6 +3697,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 ;; @@ -4563,6 +4578,8 @@ m4_if([$1], [CXX], [ ;; psos*) ;; + serenity*) + ;; solaris*) case $cc_basename in CC* | sunCC*) @@ -4911,6 +4928,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' @@ -6025,6 +6045,9 @@ _LT_EOF _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; + serenity*) + ;; + solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test yes = "$GCC"; then @@ -7350,6 +7373,9 @@ if test yes != "$_lt_caught_CXX_error"; then _LT_TAGVAR(ld_shlibs, $1)=no ;; + serenity*) + ;; + sunos4*) case $cc_basename in CC*) -- 2.47.3