Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for standalone static binaries #136

Open
rcarmo opened this issue Aug 2, 2015 · 2 comments
Open

Add option for standalone static binaries #136

rcarmo opened this issue Aug 2, 2015 · 2 comments

Comments

@rcarmo
Copy link

rcarmo commented Aug 2, 2015

I realize this might not be everyone's cup of tea, but I would like to see a configure option to build standalone static binaries (I'm currently trying to do this manually for shrpx, but it would be nice if it were possible to have for all binaries...)

@tatsuhiro-t
Copy link
Owner

Adding -all-static to LDFLAGS is the first step for statically linked binary, but I saw some problem with getaddrinfo and dlopen. The linker issues warning about them when linking, saying that same version of libc is required on runtime.

@rcarmo
Copy link
Author

rcarmo commented Aug 3, 2015

I see what you mean. Like you say, it's a first step, and might realistically be the simplest way to minimize runtime dependencies. I'm a bit spoiled by all the standalone Go binaries, and would like to use shrpx and the other binaries without worrying about dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants