mirror of
https://github.com/NixOS/nix
synced 2025-07-08 02:43:54 +02:00
Fix FreeBSD build
This restores some CPP'd code that was added inc18911602e
and accidentally lost in2477e4e3b8
. Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
parent
e74ce01b7f
commit
7c2981fc55
4 changed files with 36 additions and 8 deletions
|
@ -369,6 +369,14 @@ if test "$gc" = yes; then
|
|||
PKG_CHECK_MODULES([BDW_GC], [bdw-gc])
|
||||
CXXFLAGS="$BDW_GC_CFLAGS $CXXFLAGS"
|
||||
AC_DEFINE(HAVE_BOEHMGC, 1, [Whether to use the Boehm garbage collector.])
|
||||
|
||||
# See `fixupBoehmStackPointer`, for the integration between Boehm GC
|
||||
# and Boost coroutines.
|
||||
old_CFLAGS="$CFLAGS"
|
||||
# Temporary set `-pthread` just for the next check
|
||||
CFLAGS="$CFLAGS -pthread"
|
||||
AC_CHECK_FUNCS([pthread_attr_get_np pthread_getattr_np])
|
||||
CFLAGS="$old_CFLAGS"
|
||||
fi
|
||||
|
||||
AS_IF([test "$ENABLE_UNIT_TESTS" == "yes"],[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue