# Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney
# Distributed under the GPL v2
+ 14 Dec 2008; Andrew Gaffney <agaffney@gentoo.org> gen_compile.sh:
+ Explicitly set UTILS_{CC,LD,AS} if UTILS_CROSS_COMPILE is set
+
14 Dec 2008; Andrew Gaffney <agaffney@gentoo.org> gen_cmdline.sh:
Typo fix for gentoo bug #250875
compile_utils_args()
{
local ARGS
-
ARGS=''
+
+ if [ -n "${UTILS_CROSS_COMPILE}" ]
+ then
+ UTILS_CC="${UTILS_CROSS_COMPILE}-gcc"
+ UTILS_LD="${UTILS_CROSS_COMPILE}-ld"
+ UTILS_AS="${UTILS_CROSS_COMPILE}-as"
+ fi
+
if [ "${UTILS_ARCH}" != '' ]
then
ARGS="ARCH=\"${UTILS_ARCH}\""