OSDN Git Service

* lib/g++.exp (g++_init): Use istarget. Remove target_triplet global.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / lib / target-libpath.exp
index 6a01d94..d3d7438 100644 (file)
@@ -272,11 +272,11 @@ proc restore_ld_library_path_env_vars { } {
 proc get_shlib_extension { } {
     global shlib_ext
 
-    if { [ istarget *-*-darwin* ] } {
+    if { [istarget *-*-darwin*] } {
        set shlib_ext "dylib"
-    } elseif { [ istarget *-*-cygwin* ] || [ istarget *-*-mingw* ] } {
+    } elseif { [istarget *-*-cygwin*] || [istarget *-*-mingw*] } {
        set shlib_ext "dll"
-    } elseif { [ istarget hppa*-*-hpux* ] } {
+    } elseif { [istarget hppa*-*-hpux*] } {
        set shlib_ext "sl"
     } else {
        set shlib_ext "so"