diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2024-02-14 15:54:30 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2024-02-15 13:11:36 +0100 |
commit | 0c205e0fa81181241154a3148f6ccfbe2fd5bb29 (patch) | |
tree | 9fa875ed3efc93a05acef135c4cae5be14722a0a /etc | |
parent | 09f90fac9092de13a71723f849794474831fd678 (diff) | |
download | justbuild-0c205e0fa81181241154a3148f6ccfbe2fd5bb29.tar.gz |
defaults: Support fully static linking
... of all produced binaries, including the intermediate
ones: protoc and grpc_cpp_plugin.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/defaults/CC/TARGETS | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/defaults/CC/TARGETS b/etc/defaults/CC/TARGETS index f6e13ea6..97ca6ae8 100644 --- a/etc/defaults/CC/TARGETS +++ b/etc/defaults/CC/TARGETS @@ -56,5 +56,18 @@ , "else": ["-O2", "-DNDEBUG"] } } + , "ADD_LDFLAGS": + { "type": "if" + , "cond": + { "type": "lookup" + , "map": + { "type": "var" + , "name": "TOOLCHAIN_CONFIG" + , "default": {"type": "empty_map"} + } + , "key": "BUILD_STATIC" + } + , "then": ["-static"] + } } } |