fix compiletest deadlock on freebsd
This commit is contained in:
parent
469ff08e64
commit
8f5f45bfe1
2 changed files with 7 additions and 12 deletions
|
@ -33,12 +33,6 @@ ifneq ($(findstring freebsd,$(CFG_OSTYPE)),)
|
|||
CFG_DEF_SUFFIX := .bsd.def
|
||||
CFG_INSTALL_NAME =
|
||||
CFG_PERF_TOOL := /usr/bin/time
|
||||
|
||||
# FIXME (1825): We're deadlocking on FreeBSD
|
||||
ifndef RUST_THREADS
|
||||
RUST_THREADS=1
|
||||
export RUST_THREADS
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(findstring linux,$(CFG_OSTYPE)),)
|
||||
|
|
|
@ -645,12 +645,13 @@ fn link_binary(sess: session,
|
|||
}
|
||||
|
||||
if sess.targ_cfg.os == session::os_freebsd {
|
||||
cc_args += ["-lrt", "-L/usr/local/lib", "-lexecinfo",
|
||||
"-L/usr/local/lib/gcc46",
|
||||
"-L/usr/local/lib/gcc44", "-lstdc++",
|
||||
"-Wl,-z,origin",
|
||||
"-Wl,-rpath,/usr/local/lib/gcc46",
|
||||
"-Wl,-rpath,/usr/local/lib/gcc44"];
|
||||
cc_args += ["-pthread", "-lrt",
|
||||
"-L/usr/local/lib", "-lexecinfo",
|
||||
"-L/usr/local/lib/gcc46",
|
||||
"-L/usr/local/lib/gcc44", "-lstdc++",
|
||||
"-Wl,-z,origin",
|
||||
"-Wl,-rpath,/usr/local/lib/gcc46",
|
||||
"-Wl,-rpath,/usr/local/lib/gcc44"];
|
||||
}
|
||||
|
||||
// OS X 10.6 introduced 'compact unwind info', which is produced by the
|
||||
|
|
Loading…
Add table
Reference in a new issue