diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/buildtool/execution_api/execution_service/TARGETS | 3 | ||||
-rw-r--r-- | src/buildtool/logging/TARGETS | 3 | ||||
-rw-r--r-- | src/buildtool/multithreading/TARGETS | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/buildtool/execution_api/execution_service/TARGETS b/src/buildtool/execution_api/execution_service/TARGETS index 2d8492c6..6dfb45c2 100644 --- a/src/buildtool/execution_api/execution_service/TARGETS +++ b/src/buildtool/execution_api/execution_service/TARGETS @@ -19,7 +19,8 @@ , "operation_cache" , ["src/utils/cpp", "verify_hash"] ] - , "private-ldflags": ["-pthread"] + , "private-ldflags": + ["-pthread", "-Wl,--whole-archive,-lpthread,--no-whole-archive"] } , "ac_server": { "type": ["@", "rules", "CC", "library"] diff --git a/src/buildtool/logging/TARGETS b/src/buildtool/logging/TARGETS index a4871482..15f12cea 100644 --- a/src/buildtool/logging/TARGETS +++ b/src/buildtool/logging/TARGETS @@ -17,6 +17,7 @@ ] , "deps": ["log_level", ["@", "fmt", "", "fmt"], ["@", "gsl", "", "gsl"]] , "stage": ["src", "buildtool", "logging"] - , "private-ldflags": ["-pthread"] + , "private-ldflags": + ["-pthread", "-Wl,--whole-archive,-lpthread,--no-whole-archive"] } } diff --git a/src/buildtool/multithreading/TARGETS b/src/buildtool/multithreading/TARGETS index 2d758589..e750c943 100644 --- a/src/buildtool/multithreading/TARGETS +++ b/src/buildtool/multithreading/TARGETS @@ -3,7 +3,8 @@ , "name": ["task"] , "hdrs": ["task.hpp"] , "stage": ["src", "buildtool", "multithreading"] - , "private-ldflags": ["-pthread"] + , "private-ldflags": + ["-pthread", "-Wl,--whole-archive,-lpthread,--no-whole-archive"] } , "notification_queue": { "type": ["@", "rules", "CC", "library"] |