diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-09-10 18:02:27 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2015-09-10 18:02:27 +0000 |
commit | e6a9f0ab1a783b8ced443b09f8448cc716e013a2 (patch) | |
tree | ab327489757eda07c4506cb6230aaf4c14765d87 | |
parent | cfde65194518e9cf2d55090ba614798646b8e870 (diff) | |
download | meta-clang-e6a9f0ab1a783b8ced443b09f8448cc716e013a2.tar.gz |
compiler-rt,libcxx,libcxxabi: Fix build by removing dependence on libgcc and libstdc++
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-devtools/clang/compiler-rt_git.bb | 3 | ||||
-rw-r--r-- | recipes-devtools/clang/libcxx_git.bb | 12 | ||||
-rw-r--r-- | recipes-devtools/clang/libcxxabi_git.bb | 5 |
3 files changed, 14 insertions, 6 deletions
diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb index 1ae44e8..16bbb2f 100644 --- a/recipes-devtools/clang/compiler-rt_git.bb +++ b/recipes-devtools/clang/compiler-rt_git.bb | |||
@@ -21,7 +21,8 @@ SRCREV_FORMAT = "compiler-rt" | |||
21 | 21 | ||
22 | S = "${WORKDIR}/git" | 22 | S = "${WORKDIR}/git" |
23 | 23 | ||
24 | THUMB_TUNE_CCARGS = " -ffreestanding -nostdlib -nostdinc++ -nobuiltininc" | 24 | THUMB_TUNE_CCARGS = "" |
25 | TUNE_CCARGS += "-ffreestanding -nostdlib" | ||
25 | 26 | ||
26 | EXTRA_OEMAKE += "REQUIRES_RTTI=1 VERBOSE=1" | 27 | EXTRA_OEMAKE += "REQUIRES_RTTI=1 VERBOSE=1" |
27 | 28 | ||
diff --git a/recipes-devtools/clang/libcxx_git.bb b/recipes-devtools/clang/libcxx_git.bb index 67676de..9c651e8 100644 --- a/recipes-devtools/clang/libcxx_git.bb +++ b/recipes-devtools/clang/libcxx_git.bb | |||
@@ -27,8 +27,14 @@ SRCREV_FORMAT = "llvm_libcxx_libcxxabi" | |||
27 | 27 | ||
28 | S = "${WORKDIR}/git/projects/libcxx" | 28 | S = "${WORKDIR}/git/projects/libcxx" |
29 | 29 | ||
30 | THUMB_TUNE_CCARGS = " -ffreestanding -nostdlib -nostdinc++ -nobuiltininc" | 30 | THUMB_TUNE_CCARGS = "" |
31 | 31 | TUNE_CCARGS += "-ffreestanding -nostdlib" | |
32 | EXTRA_OECMAKE += "-DLIBCXX_CXX_ABI=libcxxabi -DLIBCXXABI_LIBCXX_PATH=${S}/../libcxx -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${S}/../libcxxabi/include -DLLVM_PATH=${S}/../../" | 32 | |
33 | EXTRA_OECMAKE += "-DLIBCXX_CXX_ABI=libcxxabi \ | ||
34 | -DLIBCXXABI_LIBCXX_PATH=${S}/../libcxx \ | ||
35 | -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${S}/../libcxxabi/include \ | ||
36 | -DLLVM_PATH=${S}/../../ \ | ||
37 | -DLIBCXX_ENABLE_SHARED=False \ | ||
38 | " | ||
33 | 39 | ||
34 | BBCLASSEXTEND = "native nativesdk" | 40 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/recipes-devtools/clang/libcxxabi_git.bb b/recipes-devtools/clang/libcxxabi_git.bb index 34b5241..101fc24 100644 --- a/recipes-devtools/clang/libcxxabi_git.bb +++ b/recipes-devtools/clang/libcxxabi_git.bb | |||
@@ -26,8 +26,9 @@ SRCREV_FORMAT = "llvm_libcxx_libcxxabi" | |||
26 | 26 | ||
27 | S = "${WORKDIR}/git/projects/libcxxabi" | 27 | S = "${WORKDIR}/git/projects/libcxxabi" |
28 | 28 | ||
29 | THUMB_TUNE_CCARGS = " -ffreestanding -nostdlib -nostdinc++ -nobuiltininc" | 29 | THUMB_TUNE_CCARGS = "" |
30 | TUNE_CCARGS += "-ffreestanding -nostdlib" | ||
30 | 31 | ||
31 | EXTRA_OECMAKE += "-DLIBCXXABI_LIBCXX_PATH=${S}/../libcxx -DLLVM_PATH=${S}/../../ -DLIBCXXABI_LIBCXX_INCLUDES=${S}/../libcxx/include" | 32 | EXTRA_OECMAKE += "-DLIBCXXABI_LIBCXX_PATH=${S}/../libcxx -DLLVM_PATH=${S}/../../ -DLIBCXXABI_LIBCXX_INCLUDES=${S}/../libcxx/include -DLLVM_ENABLE_LIBCXX=True -DLLVM_BUILD_EXTERNAL_COMPILER_RT=True -DLIBCXXABI_ENABLE_SHARED=False" |
32 | 33 | ||
33 | BBCLASSEXTEND = "native nativesdk" | 34 | BBCLASSEXTEND = "native nativesdk" |