From e16054ac6d09feff4595ed8d15c3376ea053fbe0 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 11 Oct 2012 13:57:19 -0400 Subject: Only set toolchain prefix when cross building. --- 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., -- cgit v0.9.1