-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Closed
Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)help wantedSomeone outside the Bazel team could own thisSomeone outside the Bazel team could own thisteam-Rules-CPPIssues for C++ rulesIssues for C++ rulestype: feature request
Description
Among the multiple "release" outputs of my project, I'd like to include a single static library, which packages the objects of all dependencies into it. However, from what I can tell, bazel cannot build such targets.
The following target produces a single .so containing all symbols from //product/foo and //product/bar.:
cc_binary(
name = "libproduct.so",
linkshared = 1,
deps = [
"//product/foo",
"//product/bar",
],
)
I believe there is no way to generate a similar static library (libproduct.a).
Is that something that will be of interest to add?
(#492 seems somewhat related, but not exactly)
d4l3k, RNabel, Storyyeller, nolanliou, heroxbd and 47 morelastzero and crackcommzhou-yg and crackcommgamorwang, csukuangfj, jopasserat, lovebigwei, jeongukjae and 8 more
Metadata
Metadata
Assignees
Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)help wantedSomeone outside the Bazel team could own thisSomeone outside the Bazel team could own thisteam-Rules-CPPIssues for C++ rulesIssues for C++ rulestype: feature request