From 6028612674d621653d96740e62c64e41290c37d0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 May 2016 01:20:19 +0300 Subject: If asserts enabled, add linker flag -rdynamic. --- src/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index c1a7910f6..2af7089e2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,6 +21,8 @@ endif if ENABLE_ASSERTS manaplus_CXXFLAGS += -DENABLE_ASSERTS dyecmd_CXXFLAGS += -DENABLE_ASSERTS +manaplus_LDFLAGS = -rdynamic +dyecmd_LDFLAGS = -rdynamic endif if ENABLE_PUGIXML @@ -1775,6 +1777,7 @@ manaplustests_CXXFLAGS += -Werror endif if ENABLE_ASSERTS manaplustests_CXXFLAGS += -DENABLE_ASSERTS +manaplustests_LDFLAGS = -rdynamic endif manaplustests_SOURCES = ${manaplus_SOURCES} \ -- cgit v1.2.3-70-g09d2