Pass -rdynamic to the linker on Linux

This fixes the backtrace output in the signal handler.
This commit is contained in:
Yamagi Burmeister 2013-04-19 18:53:12 +02:00
parent 20110faeed
commit 3e294e5288

View file

@ -181,7 +181,7 @@ endif
# Base LDFLAGS.
ifeq ($(OSTYPE),Linux)
LDFLAGS := -L/usr/lib -lm -ldl
LDFLAGS := -L/usr/lib -lm -ldl -rdynamic
else ifeq ($(OSTYPE),FreeBSD)
LDFLAGS := -L/usr/local/lib -lm
else ifeq ($(OSTYPE),OpenBSD)