summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-07 00:56:53 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-07 00:56:53 +0300
commit743f46105e1fc10acf08bd5c79cfbf3ca571282a (patch)
tree5c3346f080bf80c0c65b993dda5c9a5405027144 /src
parentabe7009c7347dd2821bc687d8eb692bac2609bc2 (diff)
downloadplus-743f46105e1fc10acf08bd5c79cfbf3ca571282a.tar.gz
plus-743f46105e1fc10acf08bd5c79cfbf3ca571282a.tar.bz2
plus-743f46105e1fc10acf08bd5c79cfbf3ca571282a.tar.xz
plus-743f46105e1fc10acf08bd5c79cfbf3ca571282a.zip
Enable -rdynamic flag only if it supported by linker.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am4
1 files changed, 4 insertions, 0 deletions
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