Treat a prefix of "$SYSROOT" in the same way as "=" when parsing linker search paths.
authorNick Clifton <nickc@redhat.com>
Thu, 18 May 2017 14:07:59 +0000 (15:07 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 18 May 2017 14:07:59 +0000 (15:07 +0100)
commit3aa2d05a728216bbb99dbb5718be9bb36429cf41
tree634ea00884160b88e1c0c55154b963ab3652e077
parent59cc050d893d1e8c75547de950a35e809588f12f
Treat a prefix of "$SYSROOT" in the same way as "=" when parsing linker search paths.

PR ld/21251
* ldfile.c (ldfile_add_library_path): If the path starts with
$SYSROOT then use the sysroot as the real prefix.
* ldlang.c (lang_add_input_file): Treat $SYSROOT in the same
way as =.
* ldlex.l: Add $SYSROOT as allow prefix for a filename.
* ld.texinfo (-L): Document that $SYSROOT acts like = when
prefixing a library search path.
(INPUT): Likewise.
* testsuite/ld-scripts/sysroot-prefix.exp: Add $SYSROOT prefix
tests.
ld/ChangeLog
ld/ld.texinfo
ld/ldfile.c
ld/ldlang.c
ld/ldlex.l
ld/testsuite/ld-scripts/sysroot-prefix.exp