fixed explicit BACKTRACE order

and automatic linux backtrace detection :
__GLIBC__ must be tested after #include <features.h>
This commit is contained in:
Yann Collet
2018-10-09 17:12:21 -07:00
parent 1e0c5466c5
commit e0ab6b61b7
2 changed files with 13 additions and 11 deletions
+4 -2
View File
@@ -134,8 +134,10 @@ else
LZ4_MSG := $(NO_LZ4_MSG)
endif
# enable backtrace symbol names for Linux & Darwin
BACKTRACE ?= 0
# explicit backtrace enable/disable for Linux & Darwin
ifeq ($(BACKTRACE), 0)
DEBUGFLAGS += -DBACKTRACE_ENABLE=0
endif
ifeq (,$(filter Windows%, $(OS)))
ifeq ($(BACKTRACE), 1)
DEBUGFLAGS += -DBACKTRACE_ENABLE=1