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.
This commit is contained in:
Tim Schumacher 2022-05-29 15:01:28 +02:00 committed by Ileana Dumitrescu
parent bd15931e57
commit 23519121db
No known key found for this signature in database
GPG Key ID: 6570EA01146F7354

26
m4/libtool.m4 vendored
View File

@ -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*)