summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2024-02-14 15:54:30 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2024-02-15 13:11:36 +0100
commit0c205e0fa81181241154a3148f6ccfbe2fd5bb29 (patch)
tree9fa875ed3efc93a05acef135c4cae5be14722a0a /etc
parent09f90fac9092de13a71723f849794474831fd678 (diff)
downloadjustbuild-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/TARGETS13
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"]
+ }
}
}