Browse Source

more go static build flags

Grant Limberg 5 years ago
parent
commit
4d80f7c41d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      CMakeLists.txt

+ 2 - 2
CMakeLists.txt

@@ -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