aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-06-06 08:32:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-06-06 08:32:33 +0200
commita093e86f991151228f64f89810f539ada40962b7 (patch)
tree1f6ea790ea863830620bbbef939172f2e0338f0d
parentcf5ac6d727321426776f6231293a68e82a38c157 (diff)
Use -pthread instead of -lpthread
-rw-r--r--libbutl/buildfile2
-rw-r--r--tests/builtin/buildfile2
-rw-r--r--tests/fdstream/buildfile2
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