mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
fix go static command line
This commit is contained in:
parent
ffc786d796
commit
001fb54b15
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue