summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-02-17 10:36:32 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2023-05-30 15:33:18 +0200
commitf31b52a0b6bb1f8e626e7b2056918d0fb051199f (patch)
tree3288e954c1ab7b8559dc3087dc6c8954f278ff15
parentb68ed71182b1207fb750208650de075f412b4ab8 (diff)
downloadrules-cc-f31b52a0b6bb1f8e626e7b2056918d0fb051199f.tar.gz
rules-cc: Fix missing LDFLAGS propagation
-rw-r--r--CC/RULES8
1 files changed, 8 insertions, 0 deletions
diff --git a/CC/RULES b/CC/RULES
index 37460d3..b8e04d1 100644
--- a/CC/RULES
+++ b/CC/RULES
@@ -96,6 +96,14 @@
, "else": {"type": "CALL_EXPRESSION", "name": "base-provides"}
}
]
+ , ["provider", "LDFLAGS"]
+ , [ "LDFLAGS"
+ , { "type": "if"
+ , "cond": {"type": "var", "name": "LDFLAGS"}
+ , "then": {"type": "var", "name": "LDFLAGS"}
+ , "else": {"type": "CALL_EXPRESSION", "name": "base-provides"}
+ }
+ ]
, ["provider", "AR"]
, [ "AR"
, { "type": "if"