about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorJyun-Yan You <jyyou@cs.nctu.edu.tw>2012-01-01 14:36:48 +0800
committerBrian Anderson <banderson@mozilla.com>2012-01-01 20:18:55 -0800
commit21eadbe6f1f3390e61e4be58b277c35f590d4f76 (patch)
treeb2be61a3bf4db80b4873ae527dbf8d521ae4f686 /src/comp
parentd4884b6c6e3ea6b4b9da305eb48250179448ad31 (diff)
downloadrust-21eadbe6f1f3390e61e4be58b277c35f590d4f76.tar.gz
rust-21eadbe6f1f3390e61e4be58b277c35f590d4f76.zip
add missing library, enable segmented stacks for freebsd
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/back/link.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/comp/back/link.rs b/src/comp/back/link.rs
index 34f58b60aa9..7f413735acd 100644
--- a/src/comp/back/link.rs
+++ b/src/comp/back/link.rs
@@ -220,7 +220,6 @@ mod write {
             } else { FileType = LLVMAssemblyFile; }
             // Write optimized bitcode if --save-temps was on.
 
-            let seg_stack = sess.get_targ_cfg().os != session::os_freebsd;
             if opts.save_temps {
                 // Always output the bitcode file with --save-temps
 
@@ -245,7 +244,7 @@ mod write {
                                     buf_o,
                                     LLVMAssemblyFile,
                                     CodeGenOptLevel,
-                                    seg_stack)})});
+                                    true)})});
                 }
 
 
@@ -265,7 +264,7 @@ mod write {
                                         buf_o,
                                         LLVMObjectFile,
                                         CodeGenOptLevel,
-                                        seg_stack)})});
+                                        true)})});
                 }
             } else {
                 // If we aren't saving temps then just output the file
@@ -283,7 +282,7 @@ mod write {
                                     buf_o,
                                     FileType,
                                     CodeGenOptLevel,
-                                    seg_stack)})});
+                                    true)})});
             }
             // Clean up and return
 
@@ -661,7 +660,7 @@ fn link_binary(sess: session::session,
     }
 
     if sess.get_targ_cfg().os == session::os_freebsd {
-        gcc_args += ["-lrt"];
+        gcc_args += ["-lrt", "-L/usr/local/lib", "-lexecinfo"];
     }
 
     // OS X 10.6 introduced 'compact unwind info', which is produced by the