As reported in PR 23104, -ldl doesn't work on FreeBSD. Replace it with
shlib_load, which adds the right flags for dynamic library loading based
on the current target platform.
The test still passes on Linux, and should now pass on FreeBSD, though I
did not test personally.
gdb/testsuite/ChangeLog:
PR gdb/23104
* gdb.base/info-shared.exp: Replace libs=-ldl with shlib_load.
+2018-04-24 Simon Marchi <simon.marchi@ericsson.com>
+
+ PR gdb/23104
+ * gdb.base/info-shared.exp: Replace libs=-ldl with shlib_load.
+
2018-04-19 Richard Bunt <richard.bunt@arm.com>
* gdb.threads/multiple-successive-infcall.c: New test.
set cflags "$define1 $define2"
if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
- [list additional_flags=$cflags libs=-ldl]] } {
+ [list additional_flags=$cflags shlib_load]] } {
return -1
}