summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions.sh.in7
1 files changed, 7 insertions, 0 deletions
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