From 743f46105e1fc10acf08bd5c79cfbf3ca571282a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 7 Mar 2017 00:56:53 +0300 Subject: Enable -rdynamic flag only if it supported by linker. --- src/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 3a456a35e..89f09413e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -46,9 +46,11 @@ endif if ENABLE_ASSERTS manaplus_CXXFLAGS += -DENABLE_ASSERTS dyecmd_CXXFLAGS += -DENABLE_ASSERTS +if HAVE_RDYNAMIC manaplus_LDFLAGS = -rdynamic dyecmd_LDFLAGS = -rdynamic endif +endif if ENABLE_PUGIXML manaplus_CXXFLAGS += -DENABLE_PUGIXML @@ -1947,8 +1949,10 @@ manaplustests_CXXFLAGS += -Werror endif if ENABLE_ASSERTS manaplustests_CXXFLAGS += -DENABLE_ASSERTS +if HAVE_RDYNAMIC manaplustests_LDFLAGS = -rdynamic endif +endif if ENABLE_GLIBCDEBUG manaplustests_CXXFLAGS += -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC endif -- cgit v1.2.3-70-g09d2