Skip to content

Commit b5ad86f

Browse files
committed
FreeBSD: Don't add -L/usr/local/lib{,/gcc4[46]}.
The first one in particular results in Rust not being able to build itself if it is installed. The latter two shouldn't be necessary, and should only be included if they are actually going to be used.
1 parent 31764a9 commit b5ad86f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/librustc_back/target/freebsd_base.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ pub fn opts() -> TargetOptions {
1818
executables: true,
1919
morestack: true,
2020
has_rpath: true,
21-
pre_link_args: vec!(
22-
"-L/usr/local/lib".to_string(),
23-
"-L/usr/local/lib/gcc46".to_string(),
24-
"-L/usr/local/lib/gcc44".to_string(),
25-
),
2621

2722
.. Default::default()
2823
}

0 commit comments

Comments
 (0)