OSDN Git Service

2008-03-03 Andrew Haley <aph@littlepinkcloud.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Mar 2008 13:34:25 +0000 (13:34 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Mar 2008 13:34:25 +0000 (13:34 +0000)
        * testsuite/lib/libjava.exp (libjava_arguments): Use regexp
        instead of string match when checking for linux targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132862 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/testsuite/lib/libjava.exp

index f4d1ab1..c4042ff 100644 (file)
@@ -1,3 +1,8 @@
+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.
 2008-03-03  Matthias Klose  <doko@ubuntu.com>
 
        * classpath/tools/classes/gnu/classpath/tools/orbd/Main.class,
index 2cec156..523c69c 100644 (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"
        }