diff options
author | Bruno Haible <bruno@clisp.org> | 2021-02-07 20:26:12 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-02-07 20:26:12 +0100 |
commit | ae05418d45b65c052f387f05df1fb048c776b172 (patch) | |
tree | e08b11aa8a7bc39304d172818e45d80918037fea | |
parent | 5794cebef081aa5db491c7b98b12cf32c5741298 (diff) | |
download | gnulib-ae05418d45b65c052f387f05df1fb048c776b172.tar.gz gnulib-ae05418d45b65c052f387f05df1fb048c776b172.tar.bz2 |
threadlib: Add support for MidnightBSD.
* m4/threadlib.m4 (gl_WEAK_SYMBOLS, gl_THREADLIB_BODY): On MidnightBSD,
use the same test as on FreeBSD.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | m4/threadlib.m4 | 6 |
2 files changed, 9 insertions, 3 deletions
@@ -1,5 +1,11 @@ 2021-02-07 Bruno Haible <bruno@clisp.org> + threadlib: Add support for MidnightBSD. + * m4/threadlib.m4 (gl_WEAK_SYMBOLS, gl_THREADLIB_BODY): On MidnightBSD, + use the same test as on FreeBSD. + +2021-02-07 Bruno Haible <bruno@clisp.org> + host-os: Add support for MidnightBSD. * m4/host-os.m4 (gl_HOST_OS): On MidnightBSD, set HOST_OPERATING_SYSTEM to "MidnightBSD", not "Midnightbsd". diff --git a/m4/threadlib.m4 b/m4/threadlib.m4 index 20b383a88e..8fc3dfd1fc 100644 --- a/m4/threadlib.m4 +++ b/m4/threadlib.m4 @@ -1,4 +1,4 @@ -# threadlib.m4 serial 29 +# threadlib.m4 serial 30 dnl Copyright (C) 2005-2021 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -126,7 +126,7 @@ int main () case "$gl_cv_have_weak" in *yes) case "$host_os" in - freebsd* | dragonfly*) + freebsd* | dragonfly* | midnightbsd*) : > conftest1.c $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&AS_MESSAGE_LOG_FD 2>&1 cat <<EOF > conftest2.c @@ -488,7 +488,7 @@ AC_DEFUN([gl_THREADLIB_BODY], LIBTHREAD= LTLIBTHREAD= else case "$host_os" in - freebsd* | dragonfly*) + freebsd* | dragonfly* | midnightbsd*) if test "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then dnl If weak symbols can't tell whether pthread_create(), pthread_key_create() dnl etc. will succeed, we need a runtime test. |