Skip to content

Statically compile "cephcsi" binary? #2946

Answered by phlogistonjohn
leseb asked this question in Q&A
Discussion options

You must be logged in to vote

I would suggest: probably not.

There's the first issue of how to force go to build statically with cgo enabled, but beyond that the libs that we're linking to would need to be capable of static linking: so all of the lib{rados,rbd,cephfs} etc... but even their dependencies too, right? Even down to the level of glibc? I think it would be very tough to manage.

Just for my own curiosity: what issue(s) are you running into with cephcsi being dynamically linked?

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@phlogistonjohn
Comment options

@leseb
Comment options

@nixpanic
Comment options

@leseb
Comment options

@gman0
Comment options

Answer selected by leseb
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
component/build Issues and PRs related to compiling Ceph-CSI dependency/go-ceph depends on go-ceph functionality
4 participants