bors 29e60aba7d Auto merge of #30493 - semarie:openbsd-cc, r=alexcrichton
this PR reverts previous ones, that tried to make `cc` to found `estdc++` in `/usr/local/lib`. It causes more trouble than it resolvs things: rustc become unbuildable if another version already exists in `/usr/local` (for example, `libstd-xxxx.so` is found in `/usr/local/lib` and in builddir).

so this PR tries another way to achieve build, but using the good linker for building. By default, rustc use `cc` for linking. But under OpenBSD, `cc` is gcc 4.2.1 from base, whereas we build with gcc 4.9 from ports. By linking using the compiler found at compile-time, we ensure that the compiler will found his own stdc++ library without trouble.

r? @alexcrichton
2015-12-21 04:15:28 +00:00
..
2015-10-27 23:47:53 +13:00
2015-07-30 06:35:42 +10:00
2015-12-04 08:55:02 -08:00
2015-11-19 11:30:18 -05:00
2015-12-07 00:20:35 +01:00
2013-10-29 16:22:08 -07:00
2015-11-16 18:55:07 -05:00
2015-11-13 15:15:51 -05:00