From 9be173c6774fbec6cf8acd573faa039dd4129fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 24 Feb 2017 10:19:47 +0200 Subject: functions.sh: set host compiler when cross-compiling We chose to use kernel style HOST* instead of the gcc's *_FOR_HOST. --- functions.sh.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'functions.sh.in') diff --git a/functions.sh.in b/functions.sh.in index d04c776..3e1840c 100644 --- a/functions.sh.in +++ b/functions.sh.in @@ -133,6 +133,13 @@ readconfig() { # setup cross-compiler if [ -z "$CROSS_COMPILE" ]; then export CROSS_COMPILE="${CHOST}-" + export HOSTCC="$CC" + export HOSTCXX="$CXX" + export HOSTLD="$LD" + export HOSTCPPFLAGS="$CPPFLAGS" + export HOSTCXXFLAGS="$CXXFLAGS" + export HOSTCFLAGS="$CFLAGS" + export HOSTLDFLAGS="$LDFLAGS" export CC=${CROSS_COMPILE}gcc export CXX=${CROSS_COMPILE}g++ export LD=${CROSS_COMPILE}ld -- cgit v1.2.3