From 38f6aa7f5401d8322daa0b978df10d5fda2a613e Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sun, 27 Dec 2020 20:26:32 +0300 Subject: experimental: add initial cross-compilation support --- core/carbs-init/build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/carbs-init/build') diff --git a/core/carbs-init/build b/core/carbs-init/build index c46dc3e2..4fa04cb5 100755 --- a/core/carbs-init/build +++ b/core/carbs-init/build @@ -2,4 +2,6 @@ patch -p1 < respawn-fix.patch -make DESTDIR="$1" install +[ "$CPT_CROSS_TRIPLET" ] && CC=$CPT_CROSS_TRIPLET-cc + +make CC="${CC:-cc}" DESTDIR="$1" install -- cgit v1.2.3