PierreZ / goStatic

A really small static web server for Docker
GNU General Public License v2.0
391 stars 77 forks source link

Fix a warning with getaddrinfo while compiling #14

Closed aiomaster closed 6 years ago

aiomaster commented 6 years ago

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: https://github.com/opencontainers/runc/pull/1577

PierreZ commented 6 years ago

Thanks a lot for your contribution ❤️