summaryrefslogtreecommitdiffstats
path: root/classes/cmake-native.bbclass
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-08-01 22:58:41 -0700
committerKhem Raj <raj.khem@gmail.com>2020-11-04 11:43:22 -0800
commitdf659e706866c0dbf55aa4b643f1b224fdee77f9 (patch)
treeb9bdb08c5c302c3962962bff2086976a22ea62fd /classes/cmake-native.bbclass
parent711e593d5984aad3bf35c51b7ac4482982bc16c7 (diff)
downloadmeta-clang-df659e706866c0dbf55aa4b643f1b224fdee77f9.tar.gz
libcxx: Fix linking based upon chosen compiler runtime
libcxx can use either libgcc_s or llvm libunwind for unwinder functionality, the defaults are platform dependent, therefore with this patch we make intentional choice based on RUNTIME settings chosen, e.g. when using GNU runtime we use libgcc and also ensure that it add right compiler options to build as well, since libcxx build looks C runtime by calling $($CC --print-libgcc-file-name) to build libc++abi.so unless we use right -rtlib option it will result in linking wrong library Enable RTTI as well do not enable llvm unwinder unless we chose llvm runtime, even that might not work since libpthread from glibc explicitly dlopens libgcc_s.so to enable unwinding https://github.com/bminor/glibc/blob/5f72f9800b250410cad3abfeeb09469ef12b2438/sysdeps/nptl/unwind-forcedunwind.c#L53...L58 Fixes Issue #332 Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'classes/cmake-native.bbclass')
0 files changed, 0 insertions, 0 deletions