diff options
| -rw-r--r-- | recipes-devtools/clang/compiler-rt_git.bb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb index cb72b5a..77d72dd 100644 --- a/recipes-devtools/clang/compiler-rt_git.bb +++ b/recipes-devtools/clang/compiler-rt_git.bb | |||
| @@ -22,9 +22,14 @@ INHIBIT_DEFAULT_DEPS = "1" | |||
| 22 | 22 | ||
| 23 | DEPENDS += "ninja-native libgcc" | 23 | DEPENDS += "ninja-native libgcc" |
| 24 | DEPENDS:append:class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc gcc-runtime" | 24 | DEPENDS:append:class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc gcc-runtime" |
| 25 | DEPENDS:append:class-nativesdk = " clang-native" | 25 | DEPENDS:append:class-nativesdk = " clang-native clang-crosssdk-${SDK_ARCH} nativesdk-gcc-runtime" |
| 26 | DEPENDS:append:class-native = " clang-native" | 26 | DEPENDS:append:class-native = " clang-native" |
| 27 | 27 | ||
| 28 | # Trick clang.bbclass into not creating circular dependencies | ||
| 29 | UNWINDLIB:class-nativesdk = "--unwindlib=libgcc" | ||
| 30 | COMPILER_RT:class-nativesdk:toolchain-clang:runtime-llvm = "-rtlib=libgcc --unwindlib=libgcc" | ||
| 31 | LIBCPLUSPLUS:class-nativesdk:toolchain-clang:runtime-llvm = "-stdlib=libstdc++" | ||
| 32 | |||
| 28 | CXXFLAGS += "-stdlib=libstdc++" | 33 | CXXFLAGS += "-stdlib=libstdc++" |
| 29 | LDFLAGS += "-unwindlib=libgcc -rtlib=libgcc -stdlib=libstdc++" | 34 | LDFLAGS += "-unwindlib=libgcc -rtlib=libgcc -stdlib=libstdc++" |
| 30 | BUILD_CXXFLAGS += "-stdlib=libstdc++" | 35 | BUILD_CXXFLAGS += "-stdlib=libstdc++" |
