]> granicus.if.org Git - gc/commitdiff
Support threads for DragonFly in configure
authorIvan Maidanski <ivmai@mail.ru>
Wed, 17 Jan 2018 22:14:27 +0000 (01:14 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 17 Apr 2018 20:06:10 +0000 (23:06 +0300)
(back-port of commit 19c81d80 from 'master')

* configure.ac [THREADS=posix && host=*-*-dragonfly*] (GC_THREADS,
_REENTRANT, PARALLEL_MARK, THREAD_LOCAL_ALLOC): Define similar
to *-*-freebsd*.

configure.ac

index 67d9a6f36d03163993c03cc598b9c58621c1fbcf..5cfd2caff0b7860f6325434b0f385a76c6e10d3e 100644 (file)
@@ -227,7 +227,7 @@ case "$THREADS" in
         THREADDLLIBS=-pthread
         AM_CFLAGS="$AM_CFLAGS -pthread"
         ;;
-     *-*-freebsd*)
+     *-*-dragonfly* | *-*-freebsd*)
         AC_MSG_WARN("FreeBSD does not yet fully support threads with Boehm GC.")
         AC_DEFINE(GC_FREEBSD_THREADS)
         AM_CFLAGS="$AM_CFLAGS -pthread"