Rollup merge of #25939 - wca:fix-freebsd-configure, r=alexcrichton

Bug fixes for configure on FreeBSD:
- Don't ban using gcc; newer versions can be installed and other checks should enforce its suitability.
- Don't force Rust to link itself with /usr/local/lib{,gcc4[46]}, which causes builds to fail if Rust is already installed.  I've not been able to find an use case where this is actually necessary.
This commit is contained in:
Manish Goregaokar 2015-06-03 14:46:40 +05:30
commit 3fd41d61ab
2 changed files with 0 additions and 12 deletions

7
configure vendored
View File

@ -849,13 +849,6 @@ then
putvar CFG_LOCAL_RUST_ROOT
fi
# Force freebsd to build with clang; gcc doesn't like us there
if [ $CFG_OSTYPE = unknown-freebsd ]
then
step_msg "on FreeBSD, forcing use of clang"
CFG_ENABLE_CLANG=1
fi
# Force bitrig to build with clang; gcc doesn't like us there
if [ $CFG_OSTYPE = unknown-bitrig ]
then

View File

@ -18,11 +18,6 @@ pub fn opts() -> TargetOptions {
executables: true,
morestack: true,
has_rpath: true,
pre_link_args: vec!(
"-L/usr/local/lib".to_string(),
"-L/usr/local/lib/gcc46".to_string(),
"-L/usr/local/lib/gcc44".to_string(),
),
.. Default::default()
}