aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.chill/pr-8134.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.chill/pr-8134.exp')
-rw-r--r--gdb/testsuite/gdb.chill/pr-8134.exp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.chill/pr-8134.exp b/gdb/testsuite/gdb.chill/pr-8134.exp
index e2586d0..bbf97d9 100644
--- a/gdb/testsuite/gdb.chill/pr-8134.exp
+++ b/gdb/testsuite/gdb.chill/pr-8134.exp
@@ -28,7 +28,8 @@ if [skip_chill_tests] then { continue }
# Note we use pr-8136.ch for pr-8134.exp as well as pr-8136.exp.
set testfile2 "func1"
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
}
@@ -36,7 +37,7 @@ if { [compile "${srcfile2} -g -c"] != "" } {
set testfile "pr-8134"
set srcfile ${srcdir}/$subdir/pr-8136.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
}