-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Use netgo
for static build
#1577
Conversation
I'd recommend also using |
Thanks @tianon for pointing to |
ping @crosbymichael any idea who to ping here to get this moving? |
@thaJeztah a passing build is first |
oh, dang, sorry 😊 @yongtang can you have a look why CI is failing? |
This fix adds `netgo` to tags for static build so that the following warning could be addressed: ``` /tmp/go-link-355596637/000000.o: In function `_cgo_b0c710f30cfd_C2func_getaddrinfo': /tmp/go-build/net/_obj/cgo-gcc-prolog:46: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ``` The above warning appears when building `make static` with go 1.9. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This fix adds `-installsuffix netgo` in static build in combination of `-tags netgo`. See following for the reason: golang/go#9369 (comment) Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
@crosbymichael @thaJeztah The PR has been rebased and now tests passed. Please take a look and let me know if there are any issues. |
1 similar comment
Add `-installsuffix netgo` in static build Use `netgo` for static build LGTMs: @crosbymichael @cyphar Closes #1577
Thanks! |
This fix updates runc to 0351df1c5a66838d0c392b4ac4cf9450de844e2d With this fix the warnings generated by netgo and dlopen by go 1.9 are addressed. See - opencontainers/runc#1577 - opencontainers/runc#1579 This fix is part of the efforts for go 1.9 (moby#33892) Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This fix updates runc to 0351df1c5a66838d0c392b4ac4cf9450de844e2d With this fix the warnings generated by netgo and dlopen by go 1.9 are addressed. See - opencontainers/runc#1577 - opencontainers/runc#1579 This fix is part of the efforts for go 1.9 (#33892) Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Upstream-commit: e0ff1d1 Component: engine
This fix updates runc to 0351df1c5a66838d0c392b4ac4cf9450de844e2d With this fix the warnings generated by netgo and dlopen by go 1.9 are addressed. See - opencontainers/runc#1577 - opencontainers/runc#1579 This fix is part of the efforts for go 1.9 (moby#33892) Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This fix adds
netgo
to tags for static build so that the following warning could be addressed:The above warning appears when building
make static
with go 1.9.Signed-off-by: Yong Tang yong.tang.github@outlook.com