head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.06.22.21.52.58; author wiz; state Exp; branches; next ; commitid bNllikAfzIgOgQKG; desc @@ 1.1 log @libffi: add upstream patch fixing the two broken tests @ text @$NetBSD$ testsuite: link threads tests against libpthread on NetBSD The libffi.threads/tsan.c test calls pthread_create but the harness only appended -lpthread for OpenBSD, FreeBSD, and some Linux targets. On NetBSD this caused an undefined reference to pthread_create. Fixes #988 https://github.com/libffi/libffi/commit/c93f9428d17cde4eb35517b58feeae6fb43aba5b --- testsuite/lib/libffi.exp.orig 2026-06-20 13:58:53.000000000 +0000 +++ testsuite/lib/libffi.exp @@@@ -411,6 +411,10 @@@@ proc libffi_target_compile { source dest type options lappend options "libs= -lpthread" } + if { [string match "*-*-netbsd*" $target_triplet] } { + lappend options "libs= -lpthread" + } + lappend options "libs= -lffi" if { [string match "aarch64*-*-linux*" $target_triplet] } { @