diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-01-19 10:56:20 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-01-20 16:02:11 +0100 |
commit | bd60c35a646f5b4e173a812164b7dbf15a9ca322 (patch) | |
tree | 5d0c64f129b081425a23b8b75ccdb30c31b71614 | |
parent | 5ae5134804b6edaaffec593868f133dd840ef7df (diff) | |
download | rules-cc-bd60c35a646f5b4e173a812164b7dbf15a9ca322.tar.gz |
Fix shared lib pkg-version
... which should be only set if SOVERSION is set.
-rw-r--r-- | CC/EXPRESSIONS | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/CC/EXPRESSIONS b/CC/EXPRESSIONS index c1c11f3..cfbce42 100644 --- a/CC/EXPRESSIONS +++ b/CC/EXPRESSIONS @@ -1145,9 +1145,14 @@ , "bindings": [ ["name", {"type": "var", "name": "pkg-name"}] , [ "version" - , { "type": "join" - , "separator": "." - , "$1": {"type": "var", "name": "soversion"} + , { "type": "if" + , "cond": {"type": "var", "name": "soversion"} + , "then": + { "type": "join" + , "separator": "." + , "$1": {"type": "var", "name": "soversion"} + } + , "else": null } ] ] |