]> Savannah Git Hosting - gnulib.git/commitdiff
threadlib: Add support for MidnightBSD.
authorBruno Haible <bruno@clisp.org>
Sun, 7 Feb 2021 19:26:12 +0000 (20:26 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 7 Feb 2021 19:26:12 +0000 (20:26 +0100)
* m4/threadlib.m4 (gl_WEAK_SYMBOLS, gl_THREADLIB_BODY): On MidnightBSD,
use the same test as on FreeBSD.

ChangeLog
m4/threadlib.m4

index 30bed5601b133b70f220e0f06c19a637c1fdc1ce..78a88887db9e6577ffdf6191effda231f97bcf3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
index 20b383a88e89062cfc163672eeb727083ea6bc5a..8fc3dfd1fc75ade2dc7c7ece01f07c00606534c0 100644 (file)
@@ -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.