[oe-commits] [meta-openembedded] 24/44: llvm: correct fix for the multilib libdir
git at git.openembedded.org
git at git.openembedded.org
Thu Apr 21 19:32:49 UTC 2016
martin_jansa pushed a commit to branch master
in repository meta-openembedded.
commit d436de861d0ed64ab27e308d0a5223e53dfd6f38
Author: Jacob Stiffler <j-stiffler at ti.com>
AuthorDate: Mon Apr 11 17:32:30 2016 -0400
llvm: correct fix for the multilib libdir
* If llvm.inc is used for native and nativesdk class packages, the
resulting llvm-config is broken since "${base_libdir}" is prefixed
with the full patch to sysroot
* Replace "/lib" with "/${baselib}" instead of "${base_libdir}" as
"${base_libdir}" is the full path and "${baselib}" is the name of
the multilib directory.
Signed-off-by: Jacob Stiffler <j-stiffler at ti.com>
Acked-by: Denys Dmytriyenko <denys at ti.com>
Tested-by: Denys Dmytriyenko <denys at ti.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
meta-oe/recipes-core/llvm/llvm.inc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta-oe/recipes-core/llvm/llvm.inc b/meta-oe/recipes-core/llvm/llvm.inc
index 31b2db4..02d4617 100644
--- a/meta-oe/recipes-core/llvm/llvm.inc
+++ b/meta-oe/recipes-core/llvm/llvm.inc
@@ -61,7 +61,7 @@ do_configure_prepend() {
sed -ri "s#/(bin|include|lib)(/?\")#/\1/${LLVM_DIR}\2#g" ${S}/tools/llvm-config/llvm-config.cpp
# Fix the hardcoded libdir in llvm-config
- sed -i 's:/lib\>:${base_libdir}:g' ${S}/tools/llvm-config/llvm-config.cpp
+ sed -i 's:/lib\>:/${baselib}:g' ${S}/tools/llvm-config/llvm-config.cpp
# Fails to build unless using separate directory from source
mkdir -p ${LLVM_BUILD_DIR}
@@ -72,7 +72,7 @@ do_compile() {
cd ${LLVM_BUILD_DIR}
# Fix libdir for multilib
- sed -i 's:(PROJ_prefix)/lib:(PROJ_prefix)${base_libdir}:g' Makefile.config
+ sed -i 's:(PROJ_prefix)/lib:(PROJ_prefix)/${baselib}:g' Makefile.config
oe_runmake \
AR="${BUILD_AR}" \
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list