mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-08 17:39:24 +00:00
llvm3: Fix build when S != B
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -21,14 +21,14 @@ EXTRA_OEMAKE += "REQUIRES_RTTI=1 VERBOSE=1"
|
|||||||
|
|
||||||
do_configure_prepend() {
|
do_configure_prepend() {
|
||||||
# Remove RPATHs
|
# Remove RPATHs
|
||||||
sed -i 's:$(RPATH) -Wl,$(\(ToolDir\|LibDir\|ExmplDir\))::g' Makefile.rules
|
sed -i 's:$(RPATH) -Wl,$(\(ToolDir\|LibDir\|ExmplDir\))::g' ${S}/Makefile.rules
|
||||||
|
|
||||||
# Drop "svn" suffix from version string
|
# Drop "svn" suffix from version string
|
||||||
sed -i 's/${PV}svn/${PV}/g' configure
|
sed -i 's/${PV}svn/${PV}/g' ${S}/configure
|
||||||
|
|
||||||
# Fix paths in llvm-config
|
# Fix paths in llvm-config
|
||||||
sed -i "s|sys::path::parent_path(CurrentPath))\.str()|sys::path::parent_path(sys::path::parent_path(CurrentPath))).str()|g" tools/llvm-config/llvm-config.cpp
|
sed -i "s|sys::path::parent_path(CurrentPath))\.str()|sys::path::parent_path(sys::path::parent_path(CurrentPath))).str()|g" ${S}/tools/llvm-config/llvm-config.cpp
|
||||||
sed -ri "s#/(bin|include|lib)(/?\")#/\1/${LLVM_DIR}\2#g" tools/llvm-config/llvm-config.cpp
|
sed -ri "s#/(bin|include|lib)(/?\")#/\1/${LLVM_DIR}\2#g" ${S}/tools/llvm-config/llvm-config.cpp
|
||||||
|
|
||||||
# Fails to build unless using separate directory from source
|
# Fails to build unless using separate directory from source
|
||||||
mkdir -p ${LLVM_BUILD_DIR}
|
mkdir -p ${LLVM_BUILD_DIR}
|
||||||
|
|||||||
Reference in New Issue
Block a user