]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/testsuite/ld-x86-64/x86-64.exp
Use better test for usable compiler in ld testsuite.
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-x86-64 / x86-64.exp
index 98aa4b04d8bee13afda8deafa7713153fa2b383e..23f202017cadf7378d9e2d411ed4ab1fdca78c94 100644 (file)
@@ -731,7 +731,7 @@ global PLT_CFLAGS
 global NOPIE_CFLAGS NOPIE_LDFLAGS
 
 # Must be native with the C compiler
-if { [isnative] && [which $CC] != 0 } {
+if { [isnative] && [check_compiler_available] } {
     run_cc_link_tests {
        {"Helper X32 DSO from x86-64 object" "" "-m64 -fPIC -g"
         {simple.c} {} "libsimple.a"}