summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-05-27 18:45:52 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-05-27 18:45:52 +0100
commitd9aee67c8ba946842b482aa4dfd792fb1a1b7c62 (patch)
tree77e0e842bb03a1aab292c6d63617d57855ef9001 /src
parentfaf55c654097f3bc4eab65d7111d4f3a2dc88c7c (diff)
Tweak Makefile, enable -rdynamic so that backtraces symbols are found
Diffstat (limited to 'src')
-rw-r--r--src/Makefile17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/Makefile b/src/Makefile
index e30c6f2b..6d706f8e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -10,27 +10,16 @@ sharedir := $(DESTDIR)$(PREFIX)/share/kak
docdir := $(DESTDIR)$(PREFIX)/share/doc/kak
CXXFLAGS += -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -pedantic
-ifneq (,$(findstring CYGWIN,$(os)))
- LDFLAGS += -rdynamic
-endif
os := $(shell uname)
ifeq ($(os),Darwin)
- LIBS += -lncurses
+ LIBS += -lncurses -lboost_regex-mt
else
- LIBS += -lncursesw
-endif
-
-ifneq (,$(findstring CYGWIN,$(os)))
- LIBS += -lboost_regex
-else ifeq ($(os),Darwin)
- LIBS += -lboost_regex-mt
-else
- LIBS += -lboost_regex
+ LIBS += -lncursesw -lboost_regex
+ LDFLAGS += -rdynamic
endif
-
debug ?= yes
ifeq ($(debug),yes)
CXXFLAGS += -DKAK_DEBUG