summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xtools/test.sh6
1 files 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