aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.chill/extstruct.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.chill/extstruct.exp')
-rw-r--r--gdb/testsuite/gdb.chill/extstruct.exp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.chill/extstruct.exp b/gdb/testsuite/gdb.chill/extstruct.exp
index 6ef4b9a..c789cc2 100644
--- a/gdb/testsuite/gdb.chill/extstruct.exp
+++ b/gdb/testsuite/gdb.chill/extstruct.exp
@@ -27,7 +27,8 @@ if [skip_chill_tests] then { continue }
set testfile2 "extstruct-grt"
set srcfile2 ${srcdir}/$subdir/${testfile2}.ch
-if { [compile "${srcfile2} -g -c"] != "" } {
+set objfile2 ${objdir}/$subdir/${testfile2}.o
+if { [compile "${srcfile2} -g -c -o ${objfile2}"] != "" } {
perror "Couldn't compile ${srcfile2}"
return -1
}
@@ -35,7 +36,7 @@ if { [compile "${srcfile2} -g -c"] != "" } {
set testfile "extstruct"
set srcfile ${srcdir}/$subdir/${testfile}.ch
set binfile ${objdir}/${subdir}/${testfile}.exe
-if { [compile "${srcfile} -g -o ${binfile} ${CHILL_RT0} ${CHILL_LIB}"] != "" } {
+if { [compile "${srcfile} -g ${objfile2} -o ${binfile} ${CHILL_RT0} ${CHILL_LIB}"] != "" } {
perror "Couldn't compile ${srcfile}"
return -1
}