From 277afc2d0aeaf58034f3cbd1369eb8d2e40ccf71 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sun, 14 Dec 2008 15:05:07 -0600 Subject: [PATCH] Explicitly set UTILS_{CC,LD,AS} if UTILS_CROSS_COMPILE is set --- ChangeLog | 3 +++ gen_compile.sh | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e20159a..ad5421b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney # Distributed under the GPL v2 + 14 Dec 2008; Andrew Gaffney gen_compile.sh: + Explicitly set UTILS_{CC,LD,AS} if UTILS_CROSS_COMPILE is set + 14 Dec 2008; Andrew Gaffney gen_cmdline.sh: Typo fix for gentoo bug #250875 diff --git a/gen_compile.sh b/gen_compile.sh index 743488f..faf4076 100644 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -31,8 +31,15 @@ compile_kernel_args() { 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}\"" -- 2.26.2