Commit 17ce4f48 by Tulio Magno Quites Machado Filho Committed by Segher Boessenkool

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
parent 69f8c1ae
2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
* 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.
2019-10-08 Richard Biener <rguenther@suse.de> 2019-10-08 Richard Biener <rguenther@suse.de>
* tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove. * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
......
...@@ -4782,14 +4782,12 @@ case "${target}" in ...@@ -4782,14 +4782,12 @@ case "${target}" in
echo "#undef LINK_OS_EXTRA_SPEC32" echo "#undef LINK_OS_EXTRA_SPEC32"
echo "#define LINK_OS_EXTRA_SPEC32" \ echo "#define LINK_OS_EXTRA_SPEC32" \
"\"%(link_os_new_dtags)" \ "\"%(link_os_new_dtags)" \
"-rpath $prefix/lib -rpath $at/lib" \ "-rpath $prefix/lib -rpath $at/lib\""
"-L $prefix/lib -L $at/lib\""
echo echo
echo "#undef LINK_OS_EXTRA_SPEC64" echo "#undef LINK_OS_EXTRA_SPEC64"
echo "#define LINK_OS_EXTRA_SPEC64" \ echo "#define LINK_OS_EXTRA_SPEC64" \
"\"%(link_os_new_dtags)" \ "\"%(link_os_new_dtags)" \
"-rpath $prefix/lib64 -rpath $at/lib64" \ "-rpath $prefix/lib64 -rpath $at/lib64\""
"-L $prefix/lib64 -L $at/lib64\""
echo echo
echo "#undef LINK_OS_NEW_DTAGS_SPEC" echo "#undef LINK_OS_NEW_DTAGS_SPEC"
echo "#define LINK_OS_NEW_DTAGS_SPEC" \ echo "#define LINK_OS_NEW_DTAGS_SPEC" \
...@@ -4802,7 +4800,10 @@ case "${target}" in ...@@ -4802,7 +4800,10 @@ case "${target}" in
echo "#define MD_EXEC_PREFIX \"$at/bin/\"" echo "#define MD_EXEC_PREFIX \"$at/bin/\""
echo echo
echo "#undef MD_STARTFILE_PREFIX" echo "#undef MD_STARTFILE_PREFIX"
echo "#define MD_STARTFILE_PREFIX \"$at/lib/\"") \ echo "#define MD_STARTFILE_PREFIX \"$prefix/lib/\""
echo
echo "#undef MD_STARTFILE_PREFIX_1"
echo "#define MD_STARTFILE_PREFIX_1 \"$at/lib/\"") \
> advance-toolchain.h > advance-toolchain.h
else else
echo "Unknown advance-toolchain $with_advance_toolchain" echo "Unknown advance-toolchain $with_advance_toolchain"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment