aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.rules8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 6ea6eb5938..a3ffbd41e4 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -639,7 +639,13 @@ endif
endif
ifeq ($(NACL_SANDBOX),1)
- LIBS += -lsrpc -limc_syscalls -lplatform -lgio -lpthread -lm -lnacl -lnacl_dyncode -lnosys
+ # NOTE: we specify --noirt to tell the driver that we should link
+ # against private (non-stable, non-IRT) libraries for the
+ # sandboxed translator. This could have been specified directly,
+ # except that LLVM slips in -lpthread elsewhere in the build system,
+ # and we need it to use -lpthread_private instead.
+ LIBS += -Wl,--noirt -lsrpc -limc_syscalls -lplatform -lgio -lpthread \
+ -lm -lnacl -lnacl_dyncode -lnosys
ifeq ($(USE_TCMALLOC),1)
# Note: -ltcmalloc_minimal needs to stay last on the link line
LIBS += -ltcmalloc_minimal