aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-06-04 18:26:45 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-06-05 02:31:39 +0200
commit686bb6c596c1574310b340160dfeb08df8dff81c (patch)
treec8cb1f868c4c6d9030cce1b65ca7efb203167a68 /src/Makefile.am
parent9fa78ca99e32c0f27b6071cc2ddffdf43cb9b9d4 (diff)
downloadsciteco-686bb6c596c1574310b340160dfeb08df8dff81c.tar.gz
when not replacing malloc with dlmalloc (--disable-malloc-replacement), don't build an empty libdlmalloc
* on some platforms (eg. Darwin/mac OS) we cannot apparently build empty convenience libraries * instead, we use conditional subdirectories and a conditional library dependency
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 17de739..8441456 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -60,8 +60,10 @@ libsciteco_base_la_SOURCES = main.c sciteco.h list.h \
# NOTE: We cannot link in Scintilla (static library) into
# a libtool convenience library
libsciteco_base_la_LIBADD = $(LIBSCITECO_INTERFACE) \
- $(top_builddir)/contrib/dlmalloc/libdlmalloc.la \
$(top_builddir)/contrib/rb3ptr/librb3ptr.la
+if REPLACE_MALLOC
+libsciteco_base_la_LIBADD += $(top_builddir)/contrib/dlmalloc/libdlmalloc.la
+endif
if BOOTSTRAP
noinst_PROGRAMS = sciteco-minimal