[testsuite] Pass pthreads in prepare_for_testing
"pthreads" in the right flag to pass in prepare_for_testing to linker, instead of additional_flags. Without this patch, the test case can't be complied by clang. gdb compile failed, clang: warning: -lpthread: 'linker' input unused gdb/testsuite: 2017-11-22 Yao Qi <yao.qi@linaro.org> * gdb.base/info-os.exp: Pass pthreads. * gdb.multi/multi-attach.exp: Likewise.
This commit is contained in:
parent
88465e872c
commit
1daad298d6
|
@ -1,3 +1,8 @@
|
||||||
|
2017-11-22 Yao Qi <yao.qi@linaro.org>
|
||||||
|
|
||||||
|
* gdb.base/info-os.exp: Pass pthreads.
|
||||||
|
* gdb.multi/multi-attach.exp: Likewise.
|
||||||
|
|
||||||
2017-11-22 Yao Qi <yao.qi@linaro.org>
|
2017-11-22 Yao Qi <yao.qi@linaro.org>
|
||||||
|
|
||||||
* gdb.dwarf2/pr10770.exp: Remove code skipping non-gcc
|
* gdb.dwarf2/pr10770.exp: Remove code skipping non-gcc
|
||||||
|
|
|
@ -28,7 +28,7 @@ if [gdb_skip_xml_test] then {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Compile test program.
|
# Compile test program.
|
||||||
if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug additional_flags=-lpthread}] } {
|
if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] } {
|
||||||
fail "cannot compile test program"
|
fail "cannot compile test program"
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ if {![can_spawn_for_attach]} {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug additional_flags=-lpthread}]} {
|
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}]} {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue