libjava.exp (libjava_arguments): Use regexp instead of string match when checking for linux targets.

2008-03-03  Andrew Haley  <aph@littlepinkcloud.com>

        * testsuite/lib/libjava.exp (libjava_arguments): Use regexp
        instead of string match when checking for linux targets.

From-SVN: r132862
This commit is contained in:
Andrew Haley
2008-03-04 13:34:25 +00:00
committed by Andrew Haley
parent 2c7c6f5439
commit e0898f4ced
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -380,7 +380,7 @@ proc libjava_arguments {{mode compile}} {
global wrapper_file wrap_compile_flags
lappend args "additional_flags=$wrap_compile_flags"
if { [string match "linux" $target_triplet] } {
if { [regexp "linux" $target_triplet] } {
lappend args "additional_flags=-specs=libgcj-test.spec"
}