From 3ae053a300a72e0fefbcf9220d05b6a6fbccb84c Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 5 Feb 2023 10:49:25 -0800 Subject: runtime: Enable PIC for static archives with clang runtime libs This helps in compling shared libraries which may use e.g. static libc++.a during link Signed-off-by: Khem Raj --- recipes-devtools/clang/compiler-rt-sanitizers_git.bb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'recipes-devtools/clang/compiler-rt-sanitizers_git.bb') diff --git a/recipes-devtools/clang/compiler-rt-sanitizers_git.bb b/recipes-devtools/clang/compiler-rt-sanitizers_git.bb index 9d8dde2..f17582e 100644 --- a/recipes-devtools/clang/compiler-rt-sanitizers_git.bb +++ b/recipes-devtools/clang/compiler-rt-sanitizers_git.bb @@ -57,6 +57,10 @@ EXTRA_OECMAKE:append:class-nativesdk = "\ -DCLANG_TABLEGEN=${STAGING_BINDIR_NATIVE}/clang-tblgen \ " +EXTRA_OECMAKE:append:class-target = "\ + -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ +" + EXTRA_OECMAKE:append:libc-musl = " -DLIBCXX_HAS_MUSL_LIBC=ON " EXTRA_OECMAKE:append:powerpc = " -DCOMPILER_RT_DEFAULT_TARGET_ARCH=powerpc " -- cgit v1.2.3-54-g00ecf