diff options
Diffstat (limited to 'gdb/testsuite/lib/gdb.exp')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 6633d24..34dad6e 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -3742,7 +3742,7 @@ proc gdb_compile_shlib_pthreads {sources dest options} { proc gdb_compile_objc {source dest type options} { set built_binfile 0 set why_msg "unrecognized error" - foreach lib {-lobjc -lpthreads -lpthread -lthread solaris} { + foreach lib {-lgnustep-base -lobjc -lpthreads -lpthread -lthread solaris} { # This kind of wipes out whatever libs the caller may have # set. Or maybe theirs will override ours. How infelicitous. if { $lib == "solaris" } { @@ -3751,6 +3751,7 @@ proc gdb_compile_objc {source dest type options} { if { $lib != "-lobjc" } { set lib "-lobjc $lib" } + set options_with_lib [concat $options [list libs=$lib quiet]] set ccout [gdb_compile $source $dest $type $options_with_lib] switch -regexp -- $ccout { |