diff options
author | Quentin Carbonneaux <quentin@c9x.me> | 2022-12-25 16:38:46 +0100 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2022-12-25 16:38:46 +0100 |
commit | a6cd65d49876140711eeca1a4092019374e01511 (patch) | |
tree | f45a81301ce8c057d1a2be48f2025ace0c878608 | |
parent | 5e9726946dcb9248dbd34ded1bdd4f7af8dc2d31 (diff) | |
download | roux-a6cd65d49876140711eeca1a4092019374e01511.tar.gz |
link pthread in tests
-rwxr-xr-x | tools/test.sh | 6 |
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 |