This test has been very unreliable across different machines. Update it
to use clang's sysroot image so that the fastmath object file name is
stable across different distributions and distro types.
Based on clang/test/Driver/linux-ld.c
Thanks to mnadeem for pointing this out at https://reviews.llvm.org/D138675
Differential Revision: https://reviews.llvm.org/D142807
! UNSUPPORTED: system-windows
! UNSUPPORTED: target=powerpc{{.*}}
! RUN: %flang -ffast-math -### %s -o %t 2>&1 \
+! RUN: --target=x86_64-unknown-linux -no-pie --gcc-toolchain="" \
+! RUN: --sysroot=%S/../../../clang/test/Driver/Inputs/basic_linux_tree \
! RUN: | FileCheck --check-prefix=CHECK-CRT %s
! CHECK-CRT: {{crtbegin.?\.o}}
! CHECK-CRT-SAME: crtfastmath.o