summaryrefslogtreecommitdiff
path: root/rules/transitions
diff options
context:
space:
mode:
Diffstat (limited to 'rules/transitions')
-rw-r--r--rules/transitions/EXPRESSIONS16
1 files changed, 16 insertions, 0 deletions
diff --git a/rules/transitions/EXPRESSIONS b/rules/transitions/EXPRESSIONS
index 8ea7550..92be685 100644
--- a/rules/transitions/EXPRESSIONS
+++ b/rules/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"}
+ }
+ }
}