summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-09-10 18:02:27 +0000
committerKhem Raj <raj.khem@gmail.com>2015-09-10 18:02:27 +0000
commite6a9f0ab1a783b8ced443b09f8448cc716e013a2 (patch)
treeab327489757eda07c4506cb6230aaf4c14765d87
parentcfde65194518e9cf2d55090ba614798646b8e870 (diff)
downloadmeta-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.bb3
-rw-r--r--recipes-devtools/clang/libcxx_git.bb12
-rw-r--r--recipes-devtools/clang/libcxxabi_git.bb5
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
22S = "${WORKDIR}/git" 22S = "${WORKDIR}/git"
23 23
24THUMB_TUNE_CCARGS = " -ffreestanding -nostdlib -nostdinc++ -nobuiltininc" 24THUMB_TUNE_CCARGS = ""
25TUNE_CCARGS += "-ffreestanding -nostdlib"
25 26
26EXTRA_OEMAKE += "REQUIRES_RTTI=1 VERBOSE=1" 27EXTRA_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
28S = "${WORKDIR}/git/projects/libcxx" 28S = "${WORKDIR}/git/projects/libcxx"
29 29
30THUMB_TUNE_CCARGS = " -ffreestanding -nostdlib -nostdinc++ -nobuiltininc" 30THUMB_TUNE_CCARGS = ""
31 31TUNE_CCARGS += "-ffreestanding -nostdlib"
32EXTRA_OECMAKE += "-DLIBCXX_CXX_ABI=libcxxabi -DLIBCXXABI_LIBCXX_PATH=${S}/../libcxx -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${S}/../libcxxabi/include -DLLVM_PATH=${S}/../../" 32
33EXTRA_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
34BBCLASSEXTEND = "native nativesdk" 40BBCLASSEXTEND = "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
27S = "${WORKDIR}/git/projects/libcxxabi" 27S = "${WORKDIR}/git/projects/libcxxabi"
28 28
29THUMB_TUNE_CCARGS = " -ffreestanding -nostdlib -nostdinc++ -nobuiltininc" 29THUMB_TUNE_CCARGS = ""
30TUNE_CCARGS += "-ffreestanding -nostdlib"
30 31
31EXTRA_OECMAKE += "-DLIBCXXABI_LIBCXX_PATH=${S}/../libcxx -DLLVM_PATH=${S}/../../ -DLIBCXXABI_LIBCXX_INCLUDES=${S}/../libcxx/include" 32EXTRA_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
33BBCLASSEXTEND = "native nativesdk" 34BBCLASSEXTEND = "native nativesdk"