From ad250e47be0f85e9ce9e6c665eeb26890e3772da Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 6 Jun 2024 08:37:35 +0200 Subject: Use -pthread instead of -lpthread --- libbuild2/buildfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2') diff --git a/libbuild2/buildfile b/libbuild2/buildfile index 3518d93..d9711e6 100644 --- a/libbuild2/buildfile +++ b/libbuild2/buildfile @@ -293,7 +293,7 @@ if ($install.root != [null]) if ($cxx.target.class != 'windows') { - libul{build2}: cxx.libs += -lpthread + libul{build2}: cxx.libs += -pthread # Note: only linking libdl in shared build. # @@ -323,7 +323,7 @@ lib{build2}: # needed for some std::thread implementations (like libstdc++). # if ($cxx.target.class != 'windows') - lib{build2}: cxx.export.libs += -lpthread + lib{build2}: cxx.export.libs += -pthread liba{build2}: cxx.export.poptions += -DLIBBUILD2_STATIC libs{build2}: cxx.export.poptions += -DLIBBUILD2_SHARED -- cgit v1.1