[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Ileana Dumitrescu |
Date: |
Tue, 19 Nov 2024 14:34:51 -0500 (EST) |
branch: development
commit a1b219a6ce0e8624c539d9e09f7298ff475814e0
Author: streaksu <streaksu@protonmail.com>
AuthorDate: Sat Dec 2 22:00:00 2023 +0100
libtool: add support for Ironclad
---
m4/libtool.m4 | 42 +++++++++++++++++++++++++++++++++++++++---
m4/ltdl.m4 | 3 +++
2 files changed, 42 insertions(+), 3 deletions(-)
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 50a987b8..c3fd4dc3 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -1725,9 +1725,9 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
lt_cv_sys_max_cmd_len=12288; # 12K is about right
;;
- gnu*)
- # Under GNU Hurd, this test is not required because there is
- # no limit to the length of command line arguments.
+ gnu* | ironclad*)
+ # Under GNU Hurd and Ironclad, this test is not required because there
+ # is no limit to the length of command line arguments.
# Libtool will interpret -1 as no limit whatsoever
lt_cv_sys_max_cmd_len=-1;
;;
@@ -2996,6 +2996,18 @@ netbsd*)
hardcode_into_libs=yes
;;
+ironclad*)
+ 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'
+ dynamic_linker='mlibc ld.so'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
newsos6)
version_type=linux # correct to gnu/linux during the next big refactor
library_names_spec='$libname$release$shared_ext$versuffix
$libname$release$shared_ext$major $libname$shared_ext'
@@ -3636,6 +3648,10 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
lt_cv_deplibs_check_method=pass_all
;;
+ironclad*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
netbsd* | netbsdelf*-gnu)
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern
/lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
@@ -4517,6 +4533,8 @@ m4_if([$1], [CXX], [
;;
netbsd* | netbsdelf*-gnu)
;;
+ ironclad*)
+ ;;
*qnx* | *nto*)
# QNX uses GNU C++, but need to define -shared option too, otherwise
# it will coredump.
@@ -4871,6 +4889,12 @@ m4_if([$1], [CXX], [
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
;;
+ ironclad*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+
*nto* | *qnx*)
# QNX uses GNU C++, but need to define -shared option too, otherwise
# it will coredump.
@@ -5349,6 +5373,11 @@ _LT_EOF
fi
;;
+ ironclad*)
+ _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'
+ ;;
+
netbsd* | netbsdelf*-gnu)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs
$linker_flags -o $lib'
@@ -5892,6 +5921,9 @@ _LT_EOF
esac
;;
+ ironclad*)
+ ;;
+
netbsd* | netbsdelf*-gnu)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs
$linker_flags' # a.out
@@ -7192,6 +7224,10 @@ if test yes != "$_lt_caught_CXX_error"; then
esac
;;
+ ironclad*)
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ ;;
+
netbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib
$predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
diff --git a/m4/ltdl.m4 b/m4/ltdl.m4
index 8ed76ab7..4f20cee2 100644
--- a/m4/ltdl.m4
+++ b/m4/ltdl.m4
@@ -495,6 +495,9 @@ 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*)
+ lt_cv_sys_dlopen_deplibs=yes
+ ;;
netbsd* | netbsdelf*-gnu)
lt_cv_sys_dlopen_deplibs=yes
;;
- development updated (5848f0aa -> 65c7b93a), Ileana Dumitrescu, 2024/11/19
- [no subject],
Ileana Dumitrescu <=
- [no subject], Ileana Dumitrescu, 2024/11/19
- [no subject], Ileana Dumitrescu, 2024/11/19
- [no subject], Ileana Dumitrescu, 2024/11/19
- [no subject], Ileana Dumitrescu, 2024/11/19
- [no subject], Ileana Dumitrescu, 2024/11/19
- [no subject], Ileana Dumitrescu, 2024/11/19