From 7bdeab315c5fdaf6d1b087423b98e80e80fefec8 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 3 Jul 2015 20:33:57 -0400 Subject: Tweaks to support cross-compilation. --- GNUmakefile | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3