aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-06-05 03:18:42 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-06-05 03:18:42 +0200
commitd13cb96e781f7d4c4f7223606c25c82d558c538f (patch)
tree4b3cbb4fbc8437bb214397f745a45805af6bd3d7 /src/Makefile.am
parent44daf91e3d3c56c05ff9bb2df9014b43284e39f3 (diff)
downloadsciteco-d13cb96e781f7d4c4f7223606c25c82d558c538f.tar.gz
don't add -rdynamic when not replacing malloc
* this flag could negatively affect optimizations * fixes builds on MinGW
Diffstat (limited to 'src/Makefile.am')
-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