summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-12-15 18:04:50 +0100
committerAndrei Karas <akaras@inbox.ru>2020-03-30 06:35:10 +0300
commit8578597b71e94cbd599eb211665b1f6a2dbc2bb0 (patch)
tree8fdad8cc7a8f9a46c0afbef0cd0a5374e78fe88b /src/login
parent960d13887d7e1e4d14ae68d72163d639590673b5 (diff)
downloadhercules-8578597b71e94cbd599eb211665b1f6a2dbc2bb0.tar.gz
hercules-8578597b71e94cbd599eb211665b1f6a2dbc2bb0.tar.bz2
hercules-8578597b71e94cbd599eb211665b1f6a2dbc2bb0.tar.xz
hercules-8578597b71e94cbd599eb211665b1f6a2dbc2bb0.zip
Disable libbacktrace by default
It's currently only tested on linux, and doesn't work yet on macOS (tested on 10.15). Further work is necessary Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/login')
-rw-r--r--src/login/Makefile.in18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/login/Makefile.in b/src/login/Makefile.in
index 4f180070c..7252eea04 100644
--- a/src/login/Makefile.in
+++ b/src/login/Makefile.in
@@ -36,12 +36,18 @@ LIBCONFIG_OBJ = $(addprefix $(LIBCONFIG_D)/, libconfig.o grammar.o scanctx.o \
LIBCONFIG_H = $(addprefix $(LIBCONFIG_D)/, libconfig.h grammar.h parsectx.h \
scanctx.h scanner.h strbuf.h wincompat.h)
-LIBBACKTRACE_D = $(THIRDPARTY_D)/libbacktrace
-LIBBACKTRACE_OBJ = $(addprefix $(LIBBACKTRACE_D)/, atomic.o backtrace.o \
- dwarf.o @LIBBACKTRACE_FORMAT_FILE@ fileline.o mmapio.o mmap.o posix.o print.o \
- simple.o sort.o state.o)
-LIBBACKTRACE_H = $(addprefix $(LIBBACKTRACE_D)/, backtrace.h \
- backtrace-supported.h config.h filenames.h internal.h)
+ifeq (@USE_LIBBACKTRACE@,yes)
+ LIBBACKTRACE_D = $(THIRDPARTY_D)/libbacktrace
+ LIBBACKTRACE_OBJ = $(addprefix $(LIBBACKTRACE_D)/, atomic.o backtrace.o \
+ dwarf.o @LIBBACKTRACE_FORMAT_FILE@ fileline.o mmapio.o mmap.o posix.o print.o \
+ simple.o sort.o state.o)
+ LIBBACKTRACE_H = $(addprefix $(LIBBACKTRACE_D)/, backtrace.h \
+ backtrace-supported.h config.h filenames.h internal.h)
+else
+ LIBBACKTRACE_D =
+ LIBBACKTRACE_OBJ =
+ LIBBACKTRACE_H =
+endif
MT19937AR_D = $(THIRDPARTY_D)/mt19937ar
MT19937AR_OBJ = $(MT19937AR_D)/mt19937ar.o