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

Fix a warning with getaddrinfo while compiling #14

Merged
merged 1 commit into from
Jul 13, 2018

Conversation

aiomaster
Copy link
Contributor

add netgo to the build to fix this ugly warning:

/tmp/go-link-148332811/000004.o: In function `_cgo_f7895c2c5a3a_C2func_getaddrinfo':                                                                                                        
/tmp/go-build/cgo-gcc-prolog:46: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

Interestingly the Image size decreases with that fix by some KB.

I got the idea from here: opencontainers/runc#1577

@PierreZ PierreZ merged commit 2a94360 into PierreZ:master Jul 13, 2018
@PierreZ
Copy link
Owner

PierreZ commented Jul 13, 2018

Thanks a lot for your contribution ❤️

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

Successfully merging this pull request may close these issues.

2 participants