summaryrefslogtreecommitdiff
path: root/transitions/EXPRESSIONS
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-12-13 17:20:01 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2022-12-16 17:18:01 +0100
commit95284ec611a53ca9c7925aad4bbe3f6561de018a (patch)
treeda5b6e44eafd8a234015a45317f86294d9513085 /transitions/EXPRESSIONS
parent606575738c3489fb9a23b772bfe8f9d29236c96b (diff)
downloadrules-cc-95284ec611a53ca9c7925aad4bbe3f6561de018a.tar.gz
rules: Add support for shared libraries
Diffstat (limited to 'transitions/EXPRESSIONS')
-rw-r--r--transitions/EXPRESSIONS16
1 files changed, 16 insertions, 0 deletions
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"}
+ }
+ }
}