From 95284ec611a53ca9c7925aad4bbe3f6561de018a Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Tue, 13 Dec 2022 17:20:01 +0100 Subject: rules: Add support for shared libraries --- transitions/EXPRESSIONS | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'transitions') diff --git a/transitions/EXPRESSIONS b/transitions/EXPRESSIONS index 8ea7550..92be685 100644 --- a/transitions/EXPRESSIONS +++ b/transitions/EXPRESSIONS @@ -10,4 +10,20 @@ } } } +, "with fPIC": + { "doc": + [ "Transition that enables BUILD_POSITION_INDEPENDENT if config_field" + , "\"shared\" is not empty." + ] + , "expression": + { "type": "if" + , "cond": {"type": "FIELD", "name": "shared"} + , "then": + { "type": "singleton_map" + , "key": "BUILD_POSITION_INDEPENDENT" + , "value": true + } + , "else": {"type": "empty_map"} + } + } } -- cgit v1.2.3