From 0c205e0fa81181241154a3148f6ccfbe2fd5bb29 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Wed, 14 Feb 2024 15:54:30 +0100 Subject: defaults: Support fully static linking ... of all produced binaries, including the intermediate ones: protoc and grpc_cpp_plugin. --- etc/defaults/CC/TARGETS | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'etc') 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"] + } } } -- cgit v1.2.3