aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-10-14 13:09:51 +0200
committerTom de Vries <tdevries@suse.de>2022-10-14 13:09:51 +0200
commitb3a5b1fd71079ffb01b4969b34e11fd6c5d416f6 (patch)
tree9fdcc90168c1c0d7688b1e800f031f5ee4575596 /gdb/testsuite
parentf98a7af815ce6f656eebe95e8dc21b63bb8ec9d2 (diff)
downloadgdb-b3a5b1fd71079ffb01b4969b34e11fd6c5d416f6.zip
gdb-b3a5b1fd71079ffb01b4969b34e11fd6c5d416f6.tar.gz
gdb-b3a5b1fd71079ffb01b4969b34e11fd6c5d416f6.tar.bz2
[gdb/testsuite] Drop unnecessary -Wl,-soname in gdb.base/skip-solib.exp
I noticed in gdb.base/skip-solib.exp: ... if {[gdb_compile_shlib ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} \ [list debug -Wl,-soname,${libname}.so]] != ""} { return -1 } ... that the -Wl,-soname argument is missing an ldflags= prefix, but adding it gives us a duplicate: ... Executing on host: gcc -fno-stack-protector \ outputs/gdb.base/skip-solib/skip-solib-lib.c.o -fdiagnostics-color=never \ -shared -g -Wl,-soname,libskip-solib.so -Wl,-soname,libskip-solib.so -lm \ -o outputs/gdb.base/skip-solib/libskip-solib.so (timeout = 300) ... so apparently it's taken care of by gdb_compile_shlib. Drop the inactive and also unnecessary -Wl,-soname,${libname}.so from the flags list for the gdb_compile_shlib call. Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.base/skip-solib.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/skip-solib.exp b/gdb/testsuite/gdb.base/skip-solib.exp
index 9af39d8..49539bb 100644
--- a/gdb/testsuite/gdb.base/skip-solib.exp
+++ b/gdb/testsuite/gdb.base/skip-solib.exp
@@ -41,7 +41,7 @@ set binfile_lib [standard_output_file ${libname}.so]
#
if {[gdb_compile_shlib ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} \
- [list debug -Wl,-soname,${libname}.so]] != ""} {
+ [list debug]] != ""} {
return -1
}