From fa495b772792dcccdf01a2963a8bacdb3e349a15 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 21 Jul 2020 23:08:44 +0200 Subject: [PATCH] Account for additional TLS on macOS/X On GLIBC systems pbd_stack_size() adds __pthread_get_minstack, this is no available on mac systems, causing issues with some libraries used by plugins. --- libs/pbd/pbd/pthread_utils.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/pbd/pbd/pthread_utils.h b/libs/pbd/pbd/pthread_utils.h index c2bd49ccb6..741493a41f 100644 --- a/libs/pbd/pbd/pthread_utils.h +++ b/libs/pbd/pbd/pthread_utils.h @@ -48,7 +48,12 @@ #include "pbd/libpbd_visibility.h" #include "pbd/signals.h" -#define PBD_RT_STACKSIZE_PROC 0x20000 // 128kB +#ifdef __APPLE__ +# define PBD_RT_STACKSIZE_PROC 0x80000 // 512kB +#else +# define PBD_RT_STACKSIZE_PROC 0x20000 // 128kB +#endif + #define PBD_RT_STACKSIZE_HELP 0x08000 // 32kB /* these are relative to sched_get_priority_max()