|
@@ -56,14 +56,14 @@ 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
|
|
- CFLAGS+=-Wall -g $(INCLUDES) $(DEFS)
|
|
|
|
|
|
+ CFLAGS+=-Wall -g -maes -mpclmul $(INCLUDES) $(DEFS)
|
|
STRIP=echo
|
|
STRIP=echo
|
|
# The following line enables optimization for the crypto code, since
|
|
# The following line enables optimization for the crypto code, since
|
|
# C25519 in particular is almost UNUSABLE in heavy testing without it.
|
|
# C25519 in particular is almost UNUSABLE in heavy testing without it.
|
|
-node/Salsa20.o node/SHA512.o node/C25519.o node/Poly1305.o: CFLAGS = -Wall -O2 -g $(INCLUDES) $(DEFS)
|
|
|
|
|
|
+node/Salsa20.o node/SHA512.o node/C25519.o node/Poly1305.o node/AES.o: CFLAGS = -Wall -O2 -g -maes -mpclmul $(INCLUDES) $(DEFS)
|
|
else
|
|
else
|
|
CFLAGS?=-Ofast -fstack-protector-strong
|
|
CFLAGS?=-Ofast -fstack-protector-strong
|
|
- CFLAGS+=$(ARCH_FLAGS) -Wall -flto -fPIE -mmacosx-version-min=10.7 -DNDEBUG -Wno-unused-private-field $(INCLUDES) $(DEFS)
|
|
|
|
|
|
+ CFLAGS+=$(ARCH_FLAGS) -Wall -flto -fPIE -maes -msse -msse2 -mpclmul -mmacosx-version-min=10.9 -DNDEBUG -Wno-unused-private-field $(INCLUDES) $(DEFS)
|
|
STRIP=strip
|
|
STRIP=strip
|
|
endif
|
|
endif
|
|
|
|
|