aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2017-12-16 19:32:50 +0100
committerdec05eba <dec05eba@protonmail.com>2017-12-16 19:32:56 +0100
commit1ffc823ae7227463aa46fe7dec312695b9a45050 (patch)
tree6028398d14b9eee7dd5925e46b217365d78a50df /backend
parent33872fc72e40331c23a82f2b5ec3e509c7191d7a (diff)
Add pthreads to build command
Diffstat (limited to 'backend')
-rw-r--r--backend/ninja/Ninja.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp
index 6e9079a..b6f2250 100644
--- a/backend/ninja/Ninja.cpp
+++ b/backend/ninja/Ninja.cpp
@@ -277,7 +277,8 @@ namespace backend
objectNames.emplace_back(objectName);
}
- string allLinkerFlags;
+ // TODO: Allow configuring default linking flags. Maybe have `package.useThreads = false` to disable this flag
+ string allLinkerFlags = "-lpthread";
// TODO: Somehow check loading order, because it has to be correct to work.. Or does it for dynamic libraries?
// Anyways it's required for static libraries (especially on Windows)