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

2008-03-04  Andrew Haley  <aph@redhat.com>

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

From-SVN: r132861
This commit is contained in:
Andrew Haley 2008-03-04 13:32:15 +00:00 committed by Andrew Haley
parent 2df09a8a4a
commit 197ba70b90
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-03-04 Andrew Haley <aph@redhat.com>
* testsuite/lib/libjava.exp (libjava_arguments): Use regexp
instead of string match when checking for linux targets.
2008-03-03 Matthias Klose <doko@ubuntu.com>
* classpath/tools/classes/gnu/classpath/tools/orbd/Main.class,

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"
}