From a093e86f991151228f64f89810f539ada40962b7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 6 Jun 2024 08:32:33 +0200 Subject: Use -pthread instead of -lpthread --- libbutl/buildfile | 2 +- tests/builtin/buildfile | 2 +- tests/fdstream/buildfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libbutl/buildfile b/libbutl/buildfile index ba4ad96..bbecf43 100644 --- a/libbutl/buildfile +++ b/libbutl/buildfile @@ -76,7 +76,7 @@ switch $tclass, $tsys } if! $windows - cxx.libs += -lpthread + cxx.libs += -pthread # Include the generated version header into the distribution (so that we don't # pick up an installed one) and don't remove it when cleaning in src (so that diff --git a/tests/builtin/buildfile b/tests/builtin/buildfile index 8d22fe4..2f23ab2 100644 --- a/tests/builtin/buildfile +++ b/tests/builtin/buildfile @@ -8,4 +8,4 @@ import libs = libbutl%lib{butl} exe{driver}: {hxx cxx}{*} $libs testscript{*} if ($cxx.target.class != 'windows') - cxx.libs += -lpthread + cxx.libs += -pthread diff --git a/tests/fdstream/buildfile b/tests/fdstream/buildfile index ee90324..27f6cbe 100644 --- a/tests/fdstream/buildfile +++ b/tests/fdstream/buildfile @@ -6,4 +6,4 @@ import libs = libbutl%lib{butl} exe{driver}: {hxx cxx}{*} $libs if ($cxx.target.class != "windows") - cxx.libs += -lpthread + cxx.libs += -pthread -- cgit v1.1