Skip to content

Commit 4a7aaa8

Browse files
crabtwbrson
authored andcommitted
---
yaml --- r: 6986 b: refs/heads/master c: 274fc1b h: refs/heads/master v: v3
1 parent 4500c17 commit 4a7aaa8

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 21eadbe6f1f3390e61e4be58b277c35f590d4f76
2+
refs/heads/master: 274fc1b59c18596d95564d835d8aae9b429d462d

trunk/mk/platform.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ifneq ($(findstring freebsd,$(CFG_OSTYPE)),)
2525
CFG_LIB_NAME=lib$(1).so
2626
CFG_LIB_GLOB=lib$(1)-*.so
2727
CFG_GCCISH_CFLAGS += -fPIC -I/usr/local/include
28-
CFG_GCCISH_LINK_FLAGS += -shared -fPIC -lpthread -lrt -L/usr/local/lib -lexecinfo
28+
CFG_GCCISH_LINK_FLAGS += -shared -fPIC -lpthread -lrt
2929
CFG_GCCISH_DEF_FLAG := -Wl,--export-dynamic,--dynamic-list=
3030
CFG_GCCISH_PRE_LIB_FLAGS := -Wl,-whole-archive
3131
CFG_GCCISH_POST_LIB_FLAGS := -Wl,-no-whole-archive

trunk/src/comp/back/link.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,10 @@ fn link_binary(sess: session::session,
660660
}
661661

662662
if sess.get_targ_cfg().os == session::os_freebsd {
663-
gcc_args += ["-lrt", "-L/usr/local/lib", "-lexecinfo"];
663+
gcc_args += ["-lrt", "-L/usr/local/lib", "-lexecinfo",
664+
"-L/usr/local/lib/gcc46",
665+
"-L/usr/local/lib/gcc44", "-lstdc++",
666+
"-Wl,-z,origin"];
664667
}
665668

666669
// OS X 10.6 introduced 'compact unwind info', which is produced by the

trunk/src/etc/snapshot.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ def scrub(b):
3333
"lib/std-*.dll",
3434
"lib/rustc-*.dll",
3535
"lib/rustrt.dll",
36-
"lib/rustllvm.dll"]
36+
"lib/rustllvm.dll"],
37+
"freebsd": ["bin/rustc",
38+
"lib/libcore-*.so",
39+
"lib/libstd-*.so",
40+
"lib/librustc-*.so",
41+
"lib/librustrt.so",
42+
"lib/librustllvm.so"]
3743
}
3844

3945
def parse_line(n, line):
@@ -73,6 +79,8 @@ def get_kernel(triple):
7379
return "winnt"
7480
if os_name == "darwin":
7581
return "macos"
82+
if os_name == "freebsd":
83+
return "freebsd"
7684
return "linux"
7785

7886
def get_cpu(triple):

0 commit comments

Comments
 (0)