Commit 00d5bd0
committed
Add linkopts to build_variables.bzl.
We may want to use shared/dynamic libraries shortly in order to deal
with shared code being duplicated by being statically linked to multiple
binaries. This changelist doesn't deal with that business yet, but it
prepares the way by adding some infrastructure to the cf_cc_binary rule.
Namely, that infrastructure allows setting default linkopts in the
build_variables.bzl like copts does. We need to do this because Bazel's
rpath settings will not be correct when we take binaries built in the
Bazel workspace and pull them into the Debian packaging. We will
eventually just add $ORIGIN/../lib to the rpath to solve that problem.
This may still result in binaries with odd Bazel-generated rpaths, which
might be a bit messy, but there might also be ways to clean that up in
the future.
Bug: 5099682911 parent f1d672b commit 00d5bd0
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
0 commit comments