Tweak Makefile, enable -rdynamic so that backtraces symbols are found
This commit is contained in:
parent
faf55c6540
commit
d9aee67c8b
17
src/Makefile
17
src/Makefile
|
@ -10,27 +10,16 @@ sharedir := $(DESTDIR)$(PREFIX)/share/kak
|
||||||
docdir := $(DESTDIR)$(PREFIX)/share/doc/kak
|
docdir := $(DESTDIR)$(PREFIX)/share/doc/kak
|
||||||
|
|
||||||
CXXFLAGS += -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -pedantic
|
CXXFLAGS += -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -pedantic
|
||||||
ifneq (,$(findstring CYGWIN,$(os)))
|
|
||||||
LDFLAGS += -rdynamic
|
|
||||||
endif
|
|
||||||
|
|
||||||
os := $(shell uname)
|
os := $(shell uname)
|
||||||
|
|
||||||
ifeq ($(os),Darwin)
|
ifeq ($(os),Darwin)
|
||||||
LIBS += -lncurses
|
LIBS += -lncurses -lboost_regex-mt
|
||||||
else
|
else
|
||||||
LIBS += -lncursesw
|
LIBS += -lncursesw -lboost_regex
|
||||||
|
LDFLAGS += -rdynamic
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(findstring CYGWIN,$(os)))
|
|
||||||
LIBS += -lboost_regex
|
|
||||||
else ifeq ($(os),Darwin)
|
|
||||||
LIBS += -lboost_regex-mt
|
|
||||||
else
|
|
||||||
LIBS += -lboost_regex
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
debug ?= yes
|
debug ?= yes
|
||||||
ifeq ($(debug),yes)
|
ifeq ($(debug),yes)
|
||||||
CXXFLAGS += -DKAK_DEBUG
|
CXXFLAGS += -DKAK_DEBUG
|
||||||
|
|
Loading…
Reference in New Issue
Block a user