commit:     9da63337a5462a8a75a4afe0f09051dcf23aeac8
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  6 17:24:52 2021 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Tue Jul  6 17:24:52 2021 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=9da63337

boost-build: Use BUILD CXX

When doing cross compile, the b2 program must be executable
on host system which tries to build boost.

Fixes: 5e340654 ("Bump boost to v1.76.0")
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 gkbuilds/boost-build.gkbuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gkbuilds/boost-build.gkbuild b/gkbuilds/boost-build.gkbuild
index 5d470c1..03d1f88 100644
--- a/gkbuilds/boost-build.gkbuild
+++ b/gkbuilds/boost-build.gkbuild
@@ -12,10 +12,12 @@ QA_IGNORE_DYNAMICALLY_LINKED_PROGRAM='(bjam|b2)$'
 src_compile() {
        cd engine || die "Failed to chdir to '${S}/engine'!"
 
+       # Using BUILD CXX here because the host system
+       # building the initramfs must be able to execute created b2 program
        local myargs=(
                ./build.sh
                cxx
-               --cxx="$(tc-getCXX)"
+               --cxx="$(tc-getBUILD_CXX)"
                --cxxflags="${CXXFLAGS}"
                -d+2
                --without-python

Reply via email to