diff options
| author | Jyun-Yan You <jyyou@cs.nctu.edu.tw> | 2012-06-07 16:38:10 +0800 |
|---|---|---|
| committer | Jyun-Yan You <jyyou@cs.nctu.edu.tw> | 2012-06-07 16:38:10 +0800 |
| commit | 8f5f45bfe143b667a4d3bb41963ed130b13fdb7f (patch) | |
| tree | bb506499b202b3f0a14434e6640ab632f4d9098d /src/rustc | |
| parent | 469ff08e646d4f56403a8d6dbd97d146bd8eeefb (diff) | |
| download | rust-8f5f45bfe143b667a4d3bb41963ed130b13fdb7f.tar.gz rust-8f5f45bfe143b667a4d3bb41963ed130b13fdb7f.zip | |
fix compiletest deadlock on freebsd
Diffstat (limited to 'src/rustc')
| -rw-r--r-- | src/rustc/back/link.rs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/rustc/back/link.rs b/src/rustc/back/link.rs index c3e1b4da772..c9f1b706893 100644 --- a/src/rustc/back/link.rs +++ b/src/rustc/back/link.rs @@ -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 |
