aboutsummaryrefslogtreecommitdiffhomepage
path: root/contrib/dlmalloc
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-05-30 18:06:35 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-05-30 18:06:35 +0200
commite3b2bb78e19b155a46379b64dcc13699399a32cc (patch)
tree25603e46871e81476e955d87eac51089026226eb /contrib/dlmalloc
parentac772d940e60e11f4cacc3aab8aca9ad4d7b5e4e (diff)
downloadsciteco-e3b2bb78e19b155a46379b64dcc13699399a32cc.tar.gz
fixed Clang builds
`-fno-optimize-strlen` is not supported on Clang and there is no way to ignore unknown arguments.
Diffstat (limited to 'contrib/dlmalloc')
-rw-r--r--contrib/dlmalloc/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/dlmalloc/Makefile.am b/contrib/dlmalloc/Makefile.am
index e575683..8df52cb 100644
--- a/contrib/dlmalloc/Makefile.am
+++ b/contrib/dlmalloc/Makefile.am
@@ -14,8 +14,9 @@ AM_CPPFLAGS = -DINSECURE='defined(NDEBUG)' -DNO_MALLINFO=1 -DNO_MALLOC_STATS=1 \
# FIXME: This optimization is still broken as of GCC v9.3.0.
# This is a known GCC bug, triggered by memset() in calloc().
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93213
-# FIXME: This must not be passed on Clang
+if !CLANG
AM_CFLAGS = -fno-optimize-strlen
+endif
noinst_LTLIBRARIES = libdlmalloc.la
if REPLACE_MALLOC