Change the library search path when using --with-advance-toolchain
authorTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Tue, 8 Oct 2019 15:08:35 +0000 (15:08 +0000)
committerSegher Boessenkool <segher@gcc.gnu.org>
Tue, 8 Oct 2019 15:08:35 +0000 (17:08 +0200)
commit17ce4f48733cdefcd672f8ec5eb104c86984e492
treecf5d6628de72db3075f73a443af7573427dfc64e
parent69f8c1aef5cdcc54d5cb2ca4f99f4f26c2f822a9
Change the library search path when using --with-advance-toolchain

From: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>

Remove all -L directories from LINK_OS_EXTRA_SPEC32 and
LINK_OS_EXTRA_SPEC64 so that user directories specified at
build time have higher preference over the advance toolchain libraries.

Set MD_STARTFILE_PREFIX to $prefix/lib/ and MD_STARTFILE_PREFIX_1 to
$at/lib/ so that a compiler library has preference over the Advance
Toolchain libraries.

* config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.

From-SVN: r276702
gcc/ChangeLog
gcc/config.gcc