mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-19 09:16:31 +00:00
Add static build option so we can build a static Linux binary for ancient distros (wheezy, etc.)
This commit is contained in:
parent
902e03bccc
commit
967ce78a57
1
make
Normal file
1
make
Normal file
@ -0,0 +1 @@
|
|||||||
|
kqq
|
@ -100,6 +100,11 @@ ifeq ($(CC_MACH),aarch64)
|
|||||||
endif
|
endif
|
||||||
DEFS+=-DZT_BUILD_PLATFORM=1 -DZT_BUILD_ARCHITECTURE=$(ZT_ARCHITECTURE) -DZT_SOFTWARE_UPDATE_DEFAULT="\"disable\""
|
DEFS+=-DZT_BUILD_PLATFORM=1 -DZT_BUILD_ARCHITECTURE=$(ZT_ARCHITECTURE) -DZT_SOFTWARE_UPDATE_DEFAULT="\"disable\""
|
||||||
|
|
||||||
|
# Define this to build a static binary, which is needed to make this runnable on a few ancient Linux distros
|
||||||
|
ifeq ($(ZT_STATIC),1)
|
||||||
|
override LDFLAGS+=-static
|
||||||
|
endif
|
||||||
|
|
||||||
all: one
|
all: one
|
||||||
|
|
||||||
one: $(OBJS) service/OneService.o one.o osdep/LinuxEthernetTap.o osdep/LinuxDropPrivileges.o
|
one: $(OBJS) service/OneService.o one.o osdep/LinuxEthernetTap.o osdep/LinuxDropPrivileges.o
|
||||||
|
Loading…
x
Reference in New Issue
Block a user