From a6cd65d49876140711eeca1a4092019374e01511 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Sun, 25 Dec 2022 16:38:46 +0100 Subject: link pthread in tests --- tools/test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/test.sh b/tools/test.sh index 9c0f9ee..4412f61 100755 --- a/tools/test.sh +++ b/tools/test.sh @@ -73,13 +73,13 @@ init() { cc="cc" ;; *OpenBSD*) - cc="cc -nopie" + cc="cc -nopie -lpthread" ;; *FreeBSD*) - cc="cc" + cc="cc -lpthread" ;; *) - cc="${CC:-cc} -no-pie" + cc="${CC:-cc} -lpthread" testcc "$cc" || cc="${CC:-cc}" ;; esac -- cgit 1.4.1