summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-04-05 04:39:20 +0000
committerKhem Raj <raj.khem@gmail.com>2016-04-05 04:39:20 +0000
commit5a33935e8bb34e392913234b3251d26949b29bcb (patch)
tree85775a048d40035dc56303f1fcb55ae3d56b8eae
parent734c2109d7352939198bc4cbcb24dd27619e99a6 (diff)
downloadmeta-clang-5a33935e8bb34e392913234b3251d26949b29bcb.tar.gz
clang-runtime: Enable shared libraries
package libcxxabi-dev and compiler-rt-staticdev into packagegroup-core-standalone-sdk-target so it gets into SDK Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bbappend2
-rw-r--r--recipes-devtools/clang/compiler-rt_git.bb2
-rw-r--r--recipes-devtools/clang/libcxx_git.bb4
-rw-r--r--recipes-devtools/clang/libcxxabi_git.bb5
-rw-r--r--recipes-devtools/clang/llvm-libunwind_git.bb4
5 files changed, 9 insertions, 8 deletions
diff --git a/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bbappend b/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bbappend
index bee997a..c8c436d 100644
--- a/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bbappend
+++ b/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bbappend
@@ -1,5 +1,7 @@
1RDEPENDS_${PN} += "\ 1RDEPENDS_${PN} += "\
2 libcxx-dev \ 2 libcxx-dev \
3 libcxxabi-dev \
3 compiler-rt-dev \ 4 compiler-rt-dev \
5 compiler-rt-staticdev \
4 llvm-libunwind-dev \ 6 llvm-libunwind-dev \
5" 7"
diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb
index 17229b1..c796224 100644
--- a/recipes-devtools/clang/compiler-rt_git.bb
+++ b/recipes-devtools/clang/compiler-rt_git.bb
@@ -27,7 +27,7 @@ S = "${WORKDIR}/git"
27inherit cmake pkgconfig pythonnative 27inherit cmake pkgconfig pythonnative
28 28
29THUMB_TUNE_CCARGS = "" 29THUMB_TUNE_CCARGS = ""
30TUNE_CCARGS += "-nostdlib" 30#TUNE_CCARGS += "-nostdlib"
31 31
32EXTRA_OECMAKE += "-DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON \ 32EXTRA_OECMAKE += "-DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON \
33 -DCOMPILER_RT_BUILD_SANITIZERS=ON \ 33 -DCOMPILER_RT_BUILD_SANITIZERS=ON \
diff --git a/recipes-devtools/clang/libcxx_git.bb b/recipes-devtools/clang/libcxx_git.bb
index 39013bb..3ebb062 100644
--- a/recipes-devtools/clang/libcxx_git.bb
+++ b/recipes-devtools/clang/libcxx_git.bb
@@ -30,12 +30,12 @@ SRCREV_FORMAT = "llvm_libcxx_libcxxabi"
30S = "${WORKDIR}/git/projects/libcxx" 30S = "${WORKDIR}/git/projects/libcxx"
31 31
32THUMB_TUNE_CCARGS = "" 32THUMB_TUNE_CCARGS = ""
33TUNE_CCARGS += "-nostdlib" 33#TUNE_CCARGS += "-nostdlib"
34 34
35EXTRA_OECMAKE += "-DLIBCXX_CXX_ABI=libcxxabi \ 35EXTRA_OECMAKE += "-DLIBCXX_CXX_ABI=libcxxabi \
36 -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${S}/../libcxxabi/include \ 36 -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${S}/../libcxxabi/include \
37 -DLLVM_PATH=${S}/../../ \ 37 -DLLVM_PATH=${S}/../../ \
38 -DLIBCXX_ENABLE_SHARED=False \ 38 -DLIBCXX_ENABLE_SHARED=ON \
39 " 39 "
40 40
41EXTRA_OECMAKE_append_libc-musl = " -DLIBCXX_HAS_MUSL_LIBC=True " 41EXTRA_OECMAKE_append_libc-musl = " -DLIBCXX_HAS_MUSL_LIBC=True "
diff --git a/recipes-devtools/clang/libcxxabi_git.bb b/recipes-devtools/clang/libcxxabi_git.bb
index 6c647e0..1e61675 100644
--- a/recipes-devtools/clang/libcxxabi_git.bb
+++ b/recipes-devtools/clang/libcxxabi_git.bb
@@ -29,14 +29,13 @@ SRCREV_FORMAT = "llvm_libcxx_libcxxabi"
29S = "${WORKDIR}/git/projects/libcxxabi" 29S = "${WORKDIR}/git/projects/libcxxabi"
30 30
31THUMB_TUNE_CCARGS = "" 31THUMB_TUNE_CCARGS = ""
32#TUNE_CCARGS += "-ffreestanding -nostdlib" 32#TUNE_CCARGS += "-nostdlib"
33TUNE_CCARGS += "-nostdlib"
34EXTRA_OECMAKE += "-DLIBCXXABI_LIBCXX_PATH=${S}/../libcxx \ 33EXTRA_OECMAKE += "-DLIBCXXABI_LIBCXX_PATH=${S}/../libcxx \
35 -DLLVM_PATH=${S}/../../ \ 34 -DLLVM_PATH=${S}/../../ \
36 -DLLVM_ENABLE_LIBCXX=True \ 35 -DLLVM_ENABLE_LIBCXX=True \
37 -DLIBCXXABI_LIBCXX_INCLUDES=${S}/../libcxx/include \ 36 -DLIBCXXABI_LIBCXX_INCLUDES=${S}/../libcxx/include \
38 -DLLVM_BUILD_EXTERNAL_COMPILER_RT=True \ 37 -DLLVM_BUILD_EXTERNAL_COMPILER_RT=True \
39 -DLIBCXXABI_ENABLE_SHARED=False \ 38 -DLIBCXXABI_ENABLE_SHARED=ON \
40" 39"
41CXXFLAGS_append_libc-musl = " -D_LIBCPP_HAS_MUSL_LIBC " 40CXXFLAGS_append_libc-musl = " -D_LIBCPP_HAS_MUSL_LIBC "
42 41
diff --git a/recipes-devtools/clang/llvm-libunwind_git.bb b/recipes-devtools/clang/llvm-libunwind_git.bb
index 6736e6c..51bdb06 100644
--- a/recipes-devtools/clang/llvm-libunwind_git.bb
+++ b/recipes-devtools/clang/llvm-libunwind_git.bb
@@ -32,14 +32,14 @@ SRCREV_FORMAT = "llvm_libcxx_libcxxabi_libunwind"
32S = "${WORKDIR}/git/projects/libunwind" 32S = "${WORKDIR}/git/projects/libunwind"
33 33
34THUMB_TUNE_CCARGS = "" 34THUMB_TUNE_CCARGS = ""
35TUNE_CCARGS += "-nostdlib" 35#TUNE_CCARGS += "-nostdlib"
36 36
37EXTRA_OECMAKE += "-DLIBCXXABI_LIBCXX_PATH=${S}/../libcxxabi \ 37EXTRA_OECMAKE += "-DLIBCXXABI_LIBCXX_PATH=${S}/../libcxxabi \
38 -DLLVM_PATH=${S}/../../ \ 38 -DLLVM_PATH=${S}/../../ \
39 -DLLVM_ENABLE_LIBCXX=True \ 39 -DLLVM_ENABLE_LIBCXX=True \
40 -DLLVM_ENABLE_LIBCXXABI=True \ 40 -DLLVM_ENABLE_LIBCXXABI=True \
41 -DLLVM_BUILD_EXTERNAL_COMPILER_RT=True \ 41 -DLLVM_BUILD_EXTERNAL_COMPILER_RT=True \
42 -DLIBCXXABI_ENABLE_SHARED=False \ 42 -DLIBUNWIND_ENABLE_SHARED=ON \
43 -DUNIX=True \ 43 -DUNIX=True \
44 " 44 "
45do_configure_prepend () { 45do_configure_prepend () {