diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-12 11:42:49 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-12 11:42:49 -0700 |
commit | 63160110240a7a8a4e6253cf910556cdb32ca9d6 (patch) | |
tree | 7285f23d4a632717d4eec08218b9b455ec9f3e07 /make-linux.mk | |
parent | 8b0846d077458a3460312eee0ac78a60e1d3808a (diff) | |
download | infinitytier-63160110240a7a8a4e6253cf910556cdb32ca9d6.tar.gz infinitytier-63160110240a7a8a4e6253cf910556cdb32ca9d6.zip |
Make crypto and compression build optimized in debug, and also try disabling peers.persist -- might ship this way as it seems more trouble than its worth.
Diffstat (limited to 'make-linux.mk')
-rw-r--r-- | make-linux.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/make-linux.mk b/make-linux.mk index 5de1fbb5..5ea3a35e 100644 --- a/make-linux.mk +++ b/make-linux.mk @@ -38,10 +38,13 @@ endif # "make debug" is a shortcut for this ifeq ($(ZT_DEBUG),1) - CFLAGS=-Wall -g -pthread $(INCLUDES) -DZT_TRACE -DZT_LOG_STDOUT $(DEFS) +# DEFS+=-DZT_TRACE -DZT_LOG_STDOUT + CFLAGS=-Wall -g -pthread $(INCLUDES) $(DEFS) LDFLAGS= STRIP=echo - DEFS+=-DZT_TRACE -DZT_LOG_STDOUT + # 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) else CFLAGS=-Wall -O3 -fPIE -fvisibility=hidden -fstack-protector -pthread $(INCLUDES) -DNDEBUG $(DEFS) LDFLAGS=-pie -Wl,-z,relro,-z,now |