summaryrefslogtreecommitdiff
path: root/external/fontconfig/ExternalProject_fontconfig.mk
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-09-14 22:56:58 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-09-15 07:58:37 +0200
commit233e0a009a6a22342a86a03eeb1349be2cd2d3eb (patch)
treed7a77170f20ef9eef3272dc7415cc77e745ee55d /external/fontconfig/ExternalProject_fontconfig.mk
parentd039fcd1cc6ce1f746b412f364790614bf972740 (diff)
A more principled suppression of -fsanitize=function in external C code
...after <https://github.com/llvm/llvm-project/commit/279a4d0d67c874e80c171666822f2fabdd6fa926> "-fsanitize=function: support C". This includes reverts of 16af9e81863a80116f808ee3cfa4a1bab7c67ac5 "update clang asan suppressions" and 151a43f3d00f6523079c53d6c2d064f80b9a55d6 ""update clang asan suppressions". Change-Id: I49740f5f3a784af1d62b830b47bfdfa27fe3e471 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156935 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'external/fontconfig/ExternalProject_fontconfig.mk')
-rw-r--r--external/fontconfig/ExternalProject_fontconfig.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/external/fontconfig/ExternalProject_fontconfig.mk b/external/fontconfig/ExternalProject_fontconfig.mk
index efa812250db8..ee0301b251db 100644
--- a/external/fontconfig/ExternalProject_fontconfig.mk
+++ b/external/fontconfig/ExternalProject_fontconfig.mk
@@ -24,6 +24,7 @@ fontconfig_add_fonts=/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/TTF,/usr/lo
$(call gb_ExternalProject_get_state_target,fontconfig,build) :
$(call gb_Trace_StartRange,fontconfig,EXTERNAL)
$(call gb_ExternalProject_run,build,\
+ $(if $(filter -fsanitize=undefined,$(CC)),CC='$(CC) -fno-sanitize=function') \
CFLAGS="$(CFLAGS) \
$(call gb_ExternalProject_get_build_flags,fontconfig) \
$(gb_VISIBILITY_FLAGS) \