From b79b1b67263abcaddfd0e3f76058f1b82d9bb846 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 4 Apr 2016 03:01:28 +0000 Subject: compiler-rt: Enable sanitizers Fix the code to make them buildable Dont package libclang_rt.asan shared object yet it links with libstdc++, we need to make it use libc++ and then we can package it Signed-off-by: Khem Raj --- recipes-devtools/clang/compiler-rt_git.bb | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb index 9e18156..17229b1 100644 --- a/recipes-devtools/clang/compiler-rt_git.bb +++ b/recipes-devtools/clang/compiler-rt_git.bb @@ -27,19 +27,25 @@ S = "${WORKDIR}/git" inherit cmake pkgconfig pythonnative THUMB_TUNE_CCARGS = "" +TUNE_CCARGS += "-nostdlib" EXTRA_OECMAKE += "-DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON \ - -DCOMPILER_RT_BUILD_SANITIZERS=OFF \ + -DCOMPILER_RT_BUILD_SANITIZERS=ON \ -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=${MULTIMACH_HOST_SYS} \ " do_install_append () { - install -d ${D}${base_libdir} - mv ${D}${libdir}/linux/*.a ${D}${base_libdir} + install -d ${D}${libdir} + mv ${D}${libdir}/linux/* ${D}${libdir} + mv ${D}${exec_prefix}/*.txt ${D}${libdir} + rm -rf ${D}${libdir}/libclang_rt.asan*.so rmdir ${D}${libdir}/linux - rmdir ${D}${libdir} } +FILES_SOLIBSDEV = "" +FILES_${PN} += "${libdir}/lib*${SOLIBSDEV}" +INSANE_SKIP_${PN} = "dev-so" + #PROVIDES_append_class-target = "\ # virtual/${TARGET_PREFIX}compilerlibs \ # libgcc \ @@ -48,4 +54,9 @@ do_install_append () { # libgcc-initial-dev \ # " # + +FILES_${PN}-dev += "${libdir}/*.syms ${libdir}/*.txt" + BBCLASSEXTEND = "native nativesdk" + +ALLOW_EMPTY_${PN} = "1" -- cgit v1.2.3-54-g00ecf