From 023cac4ebb42cd66073649d92340b2d2a8f74f33 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 14 Oct 2014 10:22:27 -0700 Subject: Add -g to optimized crypto code in ZT_DEBUG=1 build mode. --- make-mac.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'make-mac.mk') diff --git a/make-mac.mk b/make-mac.mk index 89560e8d..3868b7cf 100644 --- a/make-mac.mk +++ b/make-mac.mk @@ -29,7 +29,7 @@ ifeq ($(ZT_DEBUG),1) STRIP=echo # The following line enables optimization for the crypto code, since # C25519 in particular is almost UNUSABLE in heavy testing without it. -ext/lz4/lz4.o node/Salsa20.o node/SHA512.o node/C25519.o node/Poly1305.o: CFLAGS = -Wall -O2 -ftree-vectorize -pthread $(INCLUDES) $(DEFS) +ext/lz4/lz4.o node/Salsa20.o node/SHA512.o node/C25519.o node/Poly1305.o: CFLAGS = -Wall -O2 -g -pthread $(INCLUDES) $(DEFS) else CFLAGS=-arch i386 -arch x86_64 -Wall -O3 -flto -fPIE -fvectorize -fstack-protector -pthread -mmacosx-version-min=10.6 -DNDEBUG -Wno-unused-private-field $(INCLUDES) $(DEFS) STRIP=strip -- cgit v1.2.3