diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-07 00:56:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-07 00:56:53 +0300 |
commit | 743f46105e1fc10acf08bd5c79cfbf3ca571282a (patch) | |
tree | 5c3346f080bf80c0c65b993dda5c9a5405027144 /src | |
parent | abe7009c7347dd2821bc687d8eb692bac2609bc2 (diff) | |
download | plus-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.am | 4 |
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 |