This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
NetBSD testsuite patch
- From: Ben Elliston <bje at wasabisystems dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: 23 Nov 2003 18:32:07 +1100
- Subject: NetBSD testsuite patch
I'm fixing testsuite failures in asm-source.exp. This patch does not
completely fix it, but it is a step in the right direction. Okay to
commit?
2003-11-23 Ben Elliston <bje@wasabisystems.com>
* gdb.asm/asm-source.exp: Make sure the final link succeeds on
NetBSD as it does on FreeBSD. Modelled on a similar change by
Mark Kettenis on 2003-05-30.
*** asm-source.exp 15 Sep 2003 09:52:56 -0000 1.43
--- asm-source.exp 23 Nov 2003 07:31:30 -0000
*************** if { "${asm-arch}" == "" } {
*** 123,129 ****
# normally provided by crt1.o, which isn't linked in since we specify
# -nostartfiles. Using -nostdlib doesn't help since target_compile
# automatically adds -lm. Linking statically avoids this mess.
! if [istarget "*-*-freebsd*"] then {
set link-flags "-static"
}
--- 123,129 ----
# normally provided by crt1.o, which isn't linked in since we specify
# -nostartfiles. Using -nostdlib doesn't help since target_compile
# automatically adds -lm. Linking statically avoids this mess.
! if {[istarget "*-*-freebsd*"] || [istarget "*-*-netbsd*"]} then {
set link-flags "-static"
}