aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2020-05-10 20:59:05 +0300
committerAndreas K. Hüttel <dilfridge@gentoo.org>2020-05-10 20:59:05 +0300
commit8e936a613ea7b0b4d7787c8d51ad6ef675f3bab1 (patch)
tree311309d8cf9c87065bb14192b99b6046591a61f8
parentGentoo: Adapt generic test library to our linker settings (diff)
downloadbinutils-gdb-8e936a613ea7b0b4d7787c8d51ad6ef675f3bab1.tar.gz
binutils-gdb-8e936a613ea7b0b4d7787c8d51ad6ef675f3bab1.tar.bz2
binutils-gdb-8e936a613ea7b0b4d7787c8d51ad6ef675f3bab1.zip
Gentoo: Fix regexp of hilarious ld detection heuristicgentoo/binutils-2.34-4
The new linker used to be called as "ld/ld-new" but is now called as "./ld-new" Test for just "ld-new" and hope that the compiler binary never looks like this.
-rw-r--r--ld/testsuite/lib/ld-lib.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index a4427c6613..9f4ff31cf2 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -200,9 +200,9 @@ proc default_ld_link { ld target objects } {
# with $ld as parameter. If we want to change the default behaviour, we
# need to take the different option formats into account.
# We check the $ld parameter for
- # - .*ld/ld-new -> we're working with the new linker
+ # - ld-new -> we're working with the new linker
# - otherwise -> we're likely working with the system compiler
- if {[regexp {ld/ld-new$} $ld]} {
+ if {[regexp {ld-new$} $ld]} {
set gentoosysv "--hash-style=sysv --no-warn-shared-textrel"
} else {
set gentoosysv "-Wl,--hash-style=sysv -Wl,--no-warn-shared-textrel"