mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 04:57:53 +00:00
MacOS ARM64 universal binary build fixes.
This commit is contained in:
parent
e3e188109d
commit
3ec932e194
@ -3,7 +3,7 @@ CXX=clang++
|
|||||||
INCLUDES=
|
INCLUDES=
|
||||||
DEFS=
|
DEFS=
|
||||||
LIBS=
|
LIBS=
|
||||||
ARCH_FLAGS=-msse -msse2 -arch x86_64 -arch arm64e
|
ARCH_FLAGS=-msse -msse2 -arch x86_64 -arch arm64
|
||||||
|
|
||||||
CODESIGN=echo
|
CODESIGN=echo
|
||||||
PRODUCTSIGN=echo
|
PRODUCTSIGN=echo
|
||||||
@ -67,6 +67,7 @@ endif
|
|||||||
# Debug mode -- dump trace output, build binary with -g
|
# Debug mode -- dump trace output, build binary with -g
|
||||||
ifeq ($(ZT_DEBUG),1)
|
ifeq ($(ZT_DEBUG),1)
|
||||||
ZT_TRACE=1
|
ZT_TRACE=1
|
||||||
|
ARCH_FLAGS=
|
||||||
CFLAGS+=-Wall -g $(INCLUDES) $(DEFS) $(ARCH_FLAGS)
|
CFLAGS+=-Wall -g $(INCLUDES) $(DEFS) $(ARCH_FLAGS)
|
||||||
STRIP=echo
|
STRIP=echo
|
||||||
# The following line enables optimization for the crypto code, since
|
# The following line enables optimization for the crypto code, since
|
||||||
@ -92,10 +93,10 @@ CXXFLAGS=$(CFLAGS) -std=c++11 -stdlib=libc++
|
|||||||
all: one macui
|
all: one macui
|
||||||
|
|
||||||
ext/x64-salsa2012-asm/salsa2012.o:
|
ext/x64-salsa2012-asm/salsa2012.o:
|
||||||
as -o ext/x64-salsa2012-asm/salsa2012.o ext/x64-salsa2012-asm/salsa2012.s
|
as -arch x86_64 -o ext/x64-salsa2012-asm/salsa2012.o ext/x64-salsa2012-asm/salsa2012.s
|
||||||
|
|
||||||
mac-agent: FORCE
|
mac-agent: FORCE
|
||||||
$(CC) -Ofast -o MacEthernetTapAgent osdep/MacEthernetTapAgent.c
|
$(CC) -Ofast $(ARCH_FLAGS) -o MacEthernetTapAgent osdep/MacEthernetTapAgent.c
|
||||||
$(CODESIGN) -f --options=runtime -s $(CODESIGN_APP_CERT) MacEthernetTapAgent
|
$(CODESIGN) -f --options=runtime -s $(CODESIGN_APP_CERT) MacEthernetTapAgent
|
||||||
|
|
||||||
osdep/MacDNSHelper.o: osdep/MacDNSHelper.mm
|
osdep/MacDNSHelper.o: osdep/MacDNSHelper.mm
|
||||||
|
Loading…
Reference in New Issue
Block a user