aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-07-03 20:33:57 -0400
committerRob Austein <sra@hactrn.net>2015-07-03 20:33:57 -0400
commit7bdeab315c5fdaf6d1b087423b98e80e80fefec8 (patch)
treeed8b682372c234db99f709a2e7fe9e70db77c48c
parentf6d41618fb1b9e0449af63811c75b20f55237fb6 (diff)
Tweaks to support cross-compilation.
-rw-r--r--GNUmakefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index b8f8d20..10d5b70 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -43,6 +43,10 @@ ifneq "${ENABLE_THREADS}" "yes"
OPTIONS += --disable-threadsafe
endif
+ifdef CROSS_COMPILE
+ OPTIONS += --host=${CROSS_COMPILE}
+endif
+
TOP := $(shell pwd)
TARBALL := ${TOP}/$(notdir ${URL})
BUILD := ${TOP}/build