Cherry-pick LLVM upstream patch to fix build of compiler-rt
commit 52b5fe5f45b1908e140e05a4eceaaac7002be768 Author: Kamil Rytarowski <n54@gmx.com> Date: Wed Dec 25 04:05:10 2019 +0100 [compiler-rt] [netbsd] Define _RTLD_SOURCE to fix build The TLS base (LWP private pointer) functions are namespaced and hidden i.e. inside the _RTLD_SOURCE namespace.
This commit is contained in:
parent
4d3a90668a
commit
a047abdf83
|
@ -28,6 +28,10 @@
|
|||
#include "sanitizer_placement_new.h"
|
||||
#include "sanitizer_procmaps.h"
|
||||
|
||||
#if SANITIZER_NETBSD
|
||||
#define _RTLD_SOURCE // Fast LWP private pointer getters in ThreadSelfTlsTcb().
|
||||
#endif
|
||||
|
||||
#include <dlfcn.h> // for dlsym()
|
||||
#include <link.h>
|
||||
#include <pthread.h>
|
||||
|
|
Loading…
Reference in New Issue