diff options
author | Sascha Roloff <sascha.roloff@huawei.com> | 2024-09-10 16:33:11 +0200 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2024-09-10 17:48:26 +0200 |
commit | 533b7dec6afc0f6bc675d28be823871fbaa69894 (patch) | |
tree | 5c67ced8ea593dbccaa35573a5f5922529c4dba7 /CC | |
parent | 577f52012a1f405fd42ca7d023086151308b95c1 (diff) | |
download | rules-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/EXPRESSIONS | 4 |
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": |