File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 7979ifeq ($(ZT_SYNOLOGY ) , 1)
8080 override CFLAGS+=-fPIC
8181 override CXXFLAGS+=-fPIC
82- override DEFS+ =-D__SYNOLOGY__
82+ override DEFS+=-D__SYNOLOGY__
8383endif
8484
8585ifeq ($(ZT_TRACE ) ,1)
@@ -111,6 +111,12 @@ ifeq ($(CC_MACH),amd64)
111111endif
112112ifeq ($(CC_MACH ) ,powerpc64le)
113113 ZT_ARCHITECTURE=8
114+ override DEFS+=-DZT_NO_TYPE_PUNNING
115+ endif
116+ ifeq ($(CC_MACH ) ,powerpc)
117+ ZT_ARCHITECTURE=8
118+ override DEFS+=-DZT_NO_TYPE_PUNNING
119+ override DEFS+=-DZT_NO_CAPABILITIES
114120endif
115121ifeq ($(CC_MACH ) ,ppc64le)
116122 ZT_ARCHITECTURE=8
@@ -199,10 +205,6 @@ ifeq ($(CC_MACH),mips64el)
199205 ZT_ARCHITECTURE=6
200206 override DEFS+=-DZT_NO_TYPE_PUNNING
201207endif
202- ifeq ($(CC_MACH ) ,powerpc64le)
203- ZT_ARCHITECTURE=7
204- override DEFS+=-DZT_NO_TYPE_PUNNING
205- endif
206208
207209# Fail if system architecture could not be determined
208210ifeq ($(ZT_ARCHITECTURE ) ,999)
Original file line number Diff line number Diff line change @@ -972,7 +972,7 @@ static void _sighandlerQuit(int sig)
972972#endif
973973
974974// Drop privileges on Linux, if supported by libc etc. and "zerotier-one" user exists on system
975- #ifdef __LINUX__
975+ #if defined( __LINUX__) && !defined(ZT_NO_CAPABILITIES)
976976#ifndef PR_CAP_AMBIENT
977977#define PR_CAP_AMBIENT 47
978978#define PR_CAP_AMBIENT_IS_SET 1
You can’t perform that action at this time.
0 commit comments