From bd60c35a646f5b4e173a812164b7dbf15a9ca322 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Thu, 19 Jan 2023 10:56:20 +0100 Subject: Fix shared lib pkg-version ... which should be only set if SOVERSION is set. --- CC/EXPRESSIONS | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'CC') 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 } ] ] -- cgit v1.2.3