diff --git a/helpers/envkernel.sh b/helpers/envkernel.sh index 3cf1e3c5..c53351bb 100644 --- a/helpers/envkernel.sh +++ b/helpers/envkernel.sh @@ -121,7 +121,8 @@ initialize_chroot() { arch_substr="${host_arch:0:3}" if [ "$arch" = "$host_arch" ] || \ { [ "$arch_substr" = "arm" ] && [ "$arch_substr" = "$arch" ]; } || \ - { [ "$arch" = "arm64" ] && [ "$host_arch" = "aarch64" ]; }; then + { [ "$arch" = "arm64" ] && [ "$host_arch" = "aarch64" ]; } || \ + { [ "$arch" = "x86" ] && [ "$host_arch" = "x86_64" ]; }; then need_cross_compiler=0 fi @@ -218,6 +219,10 @@ set_alias_make() { cross_compiler="/usr/bin/$prefix-" fi + if [ "$arch" = "x86" ] && [ "$host_arch" = "x86_64" ]; then + cc=$hostcc + fi + # Build make command cmd="echo '*** pmbootstrap envkernel.sh active for $PWD! ***';" cmd="$cmd pmbootstrap -q chroot --user --"