summaryrefslogtreecommitdiff
path: root/CC
diff options
context:
space:
mode:
authorSascha Roloff <sascha.roloff@huawei.com>2024-09-10 16:33:11 +0200
committerSascha Roloff <sascha.roloff@huawei.com>2024-09-10 17:48:26 +0200
commit533b7dec6afc0f6bc675d28be823871fbaa69894 (patch)
tree5c67ced8ea593dbccaa35573a5f5922529c4dba7 /CC
parent577f52012a1f405fd42ca7d023086151308b95c1 (diff)
downloadrules-cc-533b7dec6afc0f6bc675d28be823871fbaa69894.tar.gz
Fix CC rules to consume static libraries when building a shared library
When a shared library has static-library dependencies, it is linked against these static libraries including all their link arguments. Thus, the "link-deps" as well as the "link-args" provider of the shared library should be empty.
Diffstat (limited to 'CC')
-rw-r--r--CC/EXPRESSIONS4
1 files changed, 2 insertions, 2 deletions
diff --git a/CC/EXPRESSIONS b/CC/EXPRESSIONS
index 3ca2bee..2da99b2 100644
--- a/CC/EXPRESSIONS
+++ b/CC/EXPRESSIONS
@@ -2177,8 +2177,8 @@
, [ "cflags-files"
, {"type": "CALL_EXPRESSION", "name": "cflags-files-deps"}
]
- , ["link-deps", {"type": "CALL_EXPRESSION", "name": "link-deps"}]
- , ["link-args", {"type": "CALL_EXPRESSION", "name": "link-args-deps"}]
+ , ["link-deps", {"type": "empty_map"}]
+ , ["link-args", []]
, [ "run-libs"
, { "type": "map_union"
, "$1":