summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-12-25 16:38:46 +0100
committerQuentin Carbonneaux <quentin@c9x.me>2022-12-25 16:38:46 +0100
commita6cd65d49876140711eeca1a4092019374e01511 (patch)
treef45a81301ce8c057d1a2be48f2025ace0c878608
parent5e9726946dcb9248dbd34ded1bdd4f7af8dc2d31 (diff)
downloadroux-a6cd65d49876140711eeca1a4092019374e01511.tar.gz
link pthread in tests
-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