aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 8441456..194d8ee 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -14,10 +14,13 @@ include $(top_srcdir)/scintilla.am
# FIXME: Common flags should be in configure.ac
AM_CFLAGS = -std=gnu11 -Wall -Wno-initializer-overrides -Wno-unused-value
AM_CPPFLAGS += -I$(top_srcdir)/contrib/rb3ptr
+AM_LDFLAGS =
+if REPLACE_MALLOC
# NOTE: This may be necessary to ensure that malloc() overriding
# works. It may prevent elimination of unused functions, though.
-AM_LDFLAGS = -rdynamic
+AM_LDFLAGS += -rdynamic
+endif
if STATIC_EXECUTABLES
# AM_LDFLAGS are libtool flags, NOT compiler/linker flags