This PR adds build tags for building statically linked kaia binaries
Some glibc features (e.g., libnss) can cause dependencies on specific version of glibc.
To avoid using such features, we can add build tags to guide go compiler (and linker) to use Golang implementation (as an alternative to the related glibc feature)
This is a knownissue in Golang, and also a mitigation adopted in geth
The following build method now produces a fully static binary.
KAIA_STATIC_LINK=1 make ken
Types of changes
Please put an x in the boxes related to your change.
[ ] Bugfix
[x] New feature or enhancement
[ ] Others
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
Proposed changes
The following build method now produces a fully static binary.
Types of changes
Please put an x in the boxes related to your change.
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
I have read the CLA Document and I hereby sign the CLA
in first time contribute$ make test
)Related issues
Further comments