PR fortran/88076
gcc/testsuite/ChangeLog:
* gfortran.dg/coarray/caf.exp: If the target is a FreeBSD
system add -pthread when running tests.
foreach flags $option_list {
verbose "Testing $nshort (libcaf_shmem), $flags" 1
set gfortran_aux_module_flags "-fcoarray=lib $flags -lcaf_shmem"
- dg-test $test "-fcoarray=lib $flags -lcaf_shmem" {}
+ if { [istarget *-*-freebsd*] } {
+ dg-test $test "-fcoarray=lib -pthread $flags -lcaf_shmem" {}
+ } else {
+ dg-test $test "-fcoarray=lib $flags -lcaf_shmem" {}
+ }
cleanup-modules ""
}
}