[Buildroot] [RFC PATCH v3 08/30] package/compiler-rt: Fix to install the blacklist datafiles for host-clang.
Thomas Preston
thomas.preston at codethink.co.uk
Wed Nov 20 17:39:22 UTC 2019
From: Michael Drake <michael.drake at codethink.co.uk>
Signed-off-by: Michael Drake <michael.drake at codethink.co.uk>
---
package/compiler-rt/compiler-rt.mk | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/package/compiler-rt/compiler-rt.mk b/package/compiler-rt/compiler-rt.mk
index febd71b906..c41ebcd5c1 100644
--- a/package/compiler-rt/compiler-rt.mk
+++ b/package/compiler-rt/compiler-rt.mk
@@ -28,7 +28,18 @@ COMPILER_RT_CONF_OPTS=-DCOMPILER_RT_STANDALONE_BUILD=OFF \
# standalone.
define COMPILER_RT_SETUP_RUNTIME_LIBS
mkdir -p $(HOST_DIR)/lib/clang/$(HOST_CLANG_VERSION)/lib
+ mkdir -p $(HOST_DIR)/lib/clang/$(HOST_CLANG_VERSION)/share
ln -sf ../../../../$(GNU_TARGET_NAME)/sysroot/usr/lib/linux $(HOST_DIR)/lib/clang/$(HOST_CLANG_VERSION)/lib/linux
+ ln -sf ../../../../$(GNU_TARGET_NAME)/sysroot/usr/share/asan_blacklist.txt \
+ $(HOST_DIR)/lib/clang/$(HOST_CLANG_VERSION)/share/asan_blacklist.txt
+ ln -sf ../../../../$(GNU_TARGET_NAME)/sysroot/usr/share/cfi_blacklist.txt \
+ $(HOST_DIR)/lib/clang/$(HOST_CLANG_VERSION)/share/cfi_blacklist.txt
+ ln -sf ../../../../$(GNU_TARGET_NAME)/sysroot/usr/share/dfsan_abilist.txt \
+ $(HOST_DIR)/lib/clang/$(HOST_CLANG_VERSION)/share/dfsan_abilist.txt
+ ln -sf ../../../../$(GNU_TARGET_NAME)/sysroot/usr/share/hwasan_blacklist.txt \
+ $(HOST_DIR)/lib/clang/$(HOST_CLANG_VERSION)/share/hwasan_blacklist.txt
+ ln -sf ../../../../$(GNU_TARGET_NAME)/sysroot/usr/share/msan_blacklist.txt \
+ $(HOST_DIR)/lib/clang/$(HOST_CLANG_VERSION)/share/msan_blacklist.txt
endef
COMPILER_RT_POST_INSTALL_STAGING_HOOKS += COMPILER_RT_SETUP_RUNTIME_LIBS
--
2.20.1
More information about the buildroot
mailing list