commit a6cd65d49876140711eeca1a4092019374e01511
parent 5e9726946dcb9248dbd34ded1bdd4f7af8dc2d31
Author: Quentin Carbonneaux <quentin@c9x.me>
Date: Sun, 25 Dec 2022 16:38:46 +0100
link pthread in tests
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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