more go static build flags

This commit is contained in:
Grant Limberg 2020-06-23 09:53:46 -07:00
parent de00486b80
commit 4d80f7c41d
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A

View file

@ -173,8 +173,8 @@ if(NOT PACKAGE_STATIC)
set(GOFLAGS
${GOFLAGS}
-a
-tags netgo
-ldflags '-w -extldflags \"-static -Wl,-unresolved-symbols=ignore-all\"'
-tags osusergo,netgo
-ldflags '-w -extldflags \"-static -w -s -Wl,-unresolved-symbols=ignore-all\"'
)
else(BUILD_STATIC)
set(GOFLAGS