diff options
-rw-r--r-- | src/ob-buildenv.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ob-buildenv.sh b/src/ob-buildenv.sh index 56902e5..68a6443 100644 --- a/src/ob-buildenv.sh +++ b/src/ob-buildenv.sh @@ -56,7 +56,13 @@ setup_build_helper() setup_toolchain() { - tool_prefix="${OPK_HOST_ARCH}-" + # This check is done to allow at least native building on unsupported OSes. + # It may be removed in the future. + if [ "${OPK_BUILD_ARCH}" != "${OPK_HOST_ARCH}" ]; then + tool_prefix="${OPK_HOST_ARCH}-" + else + tool_prefix='' + fi # Set toolchain environment variables. # NB: This is written for GNU Binutils and GCC and won't work for, e.g., |