Skip to content

Commit 4c92a58

Browse files
committed
[sw] Do not link pthread on android.
1 parent 4de02dd commit 4c92a58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sw.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ void build(Solution &s)
7979
}
8080
if (!win_or_mingw)
8181
{
82-
libtesseract += "pthread"_slib;
82+
if (!libtesseract.getBuildSettings().TargetOS.Android)
83+
libtesseract += "pthread"_slib;
8384
}
8485
if (libtesseract.getBuildSettings().TargetOS.Arch == ArchType::aarch64)
8586
{

0 commit comments

Comments
 (0)