diff options
Diffstat (limited to 'meta/classes/toolchain/clang-native.bbclass')
-rw-r--r-- | meta/classes/toolchain/clang-native.bbclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/toolchain/clang-native.bbclass b/meta/classes/toolchain/clang-native.bbclass index 4de491a1cb..7de7912582 100644 --- a/meta/classes/toolchain/clang-native.bbclass +++ b/meta/classes/toolchain/clang-native.bbclass | |||
@@ -16,3 +16,10 @@ BUILD_READELF = "${BUILD_PREFIX}llvm-readelf" | |||
16 | DEPENDS += "clang-native libcxx-native compiler-rt-native" | 16 | DEPENDS += "clang-native libcxx-native compiler-rt-native" |
17 | 17 | ||
18 | LDFLAGS += " --rtlib=libgcc --unwindlib=libgcc" | 18 | LDFLAGS += " --rtlib=libgcc --unwindlib=libgcc" |
19 | |||
20 | # Some systems can have mixed gcc development headers, such as pieces of both gcc 13 | ||
21 | # and 14 which can cause build failures, particularly if libgcc and libstdc++ for | ||
22 | # gcc 13 are present but only libgcc for gcc 14 and not libstdc++ when the gcc | ||
23 | # version is gcc 13. Force the gcc install that matches gcc itself | ||
24 | BUILD_CFLAGS:append:class-native = " --gcc-install-dir=$(dirname $(gcc -print-file-name=libgcc_s.so))" | ||
25 | BUILD_CXXFLAGS:append:class-native = " --gcc-install-dir=$(dirname $(gcc -print-file-name=libstdc++.so))" | ||