From e3b2bb78e19b155a46379b64dcc13699399a32cc Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 30 May 2021 18:06:35 +0200 Subject: fixed Clang builds `-fno-optimize-strlen` is not supported on Clang and there is no way to ignore unknown arguments. --- contrib/dlmalloc/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib/dlmalloc') 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 -- cgit v1.2.3