fix go static command line

This commit is contained in:
Grant Limberg 2020-06-12 16:08:34 -07:00
parent ffc786d796
commit 001fb54b15
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A

View file

@ -120,7 +120,10 @@ else(WIN32)
-static -static
) )
set(CMAKE_EXE_LINKER_FLAGS "-static ${CMAKE_EXE_LINKER_FLAGS}") set(CMAKE_EXE_LINKER_FLAGS "-static ${CMAKE_EXE_LINKER_FLAGS}")
set(GOFLAGS "-a -tags netgo -ldflags '-w -extldflags \"-static\"") set(GOFLAGS
-a
-tags netgo
-ldflags '-w -extldflags \"-static\"')
endif(BUILD_STATIC) endif(BUILD_STATIC)
endif(APPLE) endif(APPLE)
endif(WIN32) endif(WIN32)