summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorLucas Holt <luke@foolishgames.com>2021-11-29 18:54:09 -0600
committerAlex Ameen <alex.ameen.tx@gmail.com>2021-11-29 18:54:09 -0600
commit5df7dd49d5e68ea45118a0687ef2d4dd00399f1e (patch)
treef36fa3ac0a85d78c20d645f5139f1d63d17a95ad /m4
parent8f4bdbda0a0c85cf6375a4c7546b83eb3fb596d3 (diff)
downloadlibtool-5df7dd49d5e68ea45118a0687ef2d4dd00399f1e.tar.gz
libtool: add support for MidnightBSD
* build-aux/ltmain.in: clone link-mode handling for MidnightBSD from FreeBSD * m4/libtool.m4: clone various TAGVARs for MidnightBSD from FreeBSD * m4/ltdl.m4: clone dlopen handling for MidnightBSD from FreeBSD Copyright-paperwork-exempt: Yes
Diffstat (limited to 'm4')
-rw-r--r--m4/libtool.m412
-rw-r--r--m4/ltdl.m42
2 files changed, 7 insertions, 7 deletions
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 551def8b..79dac98b 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -1724,7 +1724,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
lt_cv_sys_max_cmd_len=8192;
;;
- bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
+ bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
# This has been around since 386BSD, at least. Likely further.
if test -x /sbin/sysctl; then
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
@@ -2674,7 +2674,7 @@ dgux*)
shlibpath_var=LD_LIBRARY_PATH
;;
-freebsd* | dragonfly*)
+freebsd* | dragonfly* | midnightbsd*)
# DragonFly does not have aout. When/if they implement a new
# versioning mechanism, adjust this.
if test -x /usr/bin/objformat; then
@@ -3507,7 +3507,7 @@ darwin* | rhapsody*)
lt_cv_deplibs_check_method=pass_all
;;
-freebsd* | dragonfly*)
+freebsd* | dragonfly* | midnightbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
case $host_cpu in
i*86 )
@@ -4336,7 +4336,7 @@ m4_if([$1], [CXX], [
;;
esac
;;
- freebsd* | dragonfly*)
+ freebsd* | dragonfly* | midnightbsd*)
# FreeBSD uses GNU C++
;;
hpux9* | hpux10* | hpux11*)
@@ -5670,7 +5670,7 @@ _LT_EOF
;;
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
- freebsd* | dragonfly*)
+ freebsd* | dragonfly* | midnightbsd*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
_LT_TAGVAR(hardcode_direct, $1)=yes
@@ -6782,7 +6782,7 @@ if test yes != "$_lt_caught_CXX_error"; then
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
;;
- freebsd* | dragonfly*)
+ freebsd* | dragonfly* | midnightbsd*)
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
# conventions
_LT_TAGVAR(ld_shlibs, $1)=yes
diff --git a/m4/ltdl.m4 b/m4/ltdl.m4
index 33220bbe..fa78f589 100644
--- a/m4/ltdl.m4
+++ b/m4/ltdl.m4
@@ -474,7 +474,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
# If you are looking for one http://www.opendarwin.org/projects/dlcompat
lt_cv_sys_dlopen_deplibs=yes
;;
- freebsd* | dragonfly*)
+ freebsd* | dragonfly* | midnightbsd*)
lt_cv_sys_dlopen_deplibs=yes
;;
gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)