Compile firectl statically?
luxas opened this issue · 4 comments
Hi, thanks for this great tool!
I wonder, is there a specific reason firectl is not statically linked? (i.e. specific imports)
Otherwise, I think it'd be good as a general best practice to compile it statically to reduce deps :)
Hi @luxas! My apologies for the long delay. We do not have any specific imports that require firectl to be dynamically-linked; it will build and function (as far as I can tell) fine as a statically-linked binary.
As of right now we're building a dynamically-linked binary that links to libc and libpthread, but it can be built either way. I'll open a PR to add this option to the Makefile.
Hi @luxas, we've merged a change to the Makefile to build a statically-linked binary if desired. You can enable this by passing the STATIC_BINARY
variable (i.e., make firectl STATIC_BINARY=1
).
Thank you!