diff options
| -rw-r--r-- | meta/recipes-devtools/clang/common-clang.inc | 4 | ||||
| -rw-r--r-- | meta/recipes-devtools/clang/libcxx_git.bb | 1 | ||||
| -rw-r--r-- | meta/recipes-devtools/clang/lld_git.bb | 6 |
3 files changed, 5 insertions, 6 deletions
diff --git a/meta/recipes-devtools/clang/common-clang.inc b/meta/recipes-devtools/clang/common-clang.inc index ca3a3a08b4..f7b7a1cf9a 100644 --- a/meta/recipes-devtools/clang/common-clang.inc +++ b/meta/recipes-devtools/clang/common-clang.inc | |||
| @@ -44,4 +44,8 @@ def get_clang_host_arch(bb, d): | |||
| 44 | def get_clang_target_arch(bb, d): | 44 | def get_clang_target_arch(bb, d): |
| 45 | return get_clang_arch(bb, d, 'TARGET_ARCH') | 45 | return get_clang_arch(bb, d, 'TARGET_ARCH') |
| 46 | 46 | ||
| 47 | # Don't put build-time RPATHs in the binaries, whilst they'll be stripped on | ||
| 48 | # install they cause non-deterministic binaries. | ||
| 49 | EXTRA_OECMAKE += "-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON" | ||
| 50 | |||
| 47 | require common.inc | 51 | require common.inc |
diff --git a/meta/recipes-devtools/clang/libcxx_git.bb b/meta/recipes-devtools/clang/libcxx_git.bb index b0ee3925f4..c630bd973e 100644 --- a/meta/recipes-devtools/clang/libcxx_git.bb +++ b/meta/recipes-devtools/clang/libcxx_git.bb | |||
| @@ -77,7 +77,6 @@ EXTRA_OECMAKE += "\ | |||
| 77 | -DLLVM_RUNTIME_TARGETS=${HOST_ARCH} \ | 77 | -DLLVM_RUNTIME_TARGETS=${HOST_ARCH} \ |
| 78 | -DLLVM_LIBDIR_SUFFIX=${LLVM_LIBDIR_SUFFIX} \ | 78 | -DLLVM_LIBDIR_SUFFIX=${LLVM_LIBDIR_SUFFIX} \ |
| 79 | -DLLVM_APPEND_VC_REV=OFF \ | 79 | -DLLVM_APPEND_VC_REV=OFF \ |
| 80 | -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \ | ||
| 81 | " | 80 | " |
| 82 | 81 | ||
| 83 | EXTRA_OECMAKE:append:class-target = " \ | 82 | EXTRA_OECMAKE:append:class-target = " \ |
diff --git a/meta/recipes-devtools/clang/lld_git.bb b/meta/recipes-devtools/clang/lld_git.bb index b0261ad2cb..ba36942790 100644 --- a/meta/recipes-devtools/clang/lld_git.bb +++ b/meta/recipes-devtools/clang/lld_git.bb | |||
| @@ -14,13 +14,9 @@ DEPENDS = "llvm-tblgen-native llvm" | |||
| 14 | 14 | ||
| 15 | OECMAKE_SOURCEPATH = "${S}/lld" | 15 | OECMAKE_SOURCEPATH = "${S}/lld" |
| 16 | 16 | ||
| 17 | # Explicitly disable RPATHs as otherwise they're stipped out of the binaries, | ||
| 18 | # and are then non-reproducible. | ||
| 19 | # | ||
| 20 | # Explicitly enable symlinks as the lld build doesn't call into the llvm setup | 17 | # Explicitly enable symlinks as the lld build doesn't call into the llvm setup |
| 21 | # and turn that on. | 18 | # and turn that on. |
| 22 | EXTRA_OECMAKE += "-DCMAKE_SKIP_BUILD_RPATH=ON \ | 19 | EXTRA_OECMAKE += "-DLLVM_INCLUDE_TESTS=OFF -DLLVM_USE_SYMLINKS=ON \ |
| 23 | -DLLVM_INCLUDE_TESTS=OFF -DLLVM_USE_SYMLINKS=ON \ | ||
| 24 | -DLLVM_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/llvm-tblgen" | 20 | -DLLVM_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/llvm-tblgen" |
| 25 | 21 | ||
| 26 | BBCLASSEXTEND = "native nativesdk" | 22 | BBCLASSEXTEND = "native nativesdk" |
