aboutsummaryrefslogtreecommitdiffhomepage
path: root/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 /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 'Makefile.am')
-rw-r--r--Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 8ab86f6..6a866ba 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,7 +2,10 @@
# silence libtoolize:
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = lib contrib/dlmalloc contrib/rb3ptr src doc tests
+if REPLACE_MALLOC
+MAYBE_DLMALLOC = contrib/dlmalloc
+endif
+SUBDIRS = lib $(MAYBE_DLMALLOC) contrib/rb3ptr src doc tests
dist_pkgdata_DATA = sample.teco_ini