diff options
author | Cem Keylan <cem@ckyln.com> | 2020-12-27 20:26:32 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-12-27 20:26:32 +0300 |
commit | 38f6aa7f5401d8322daa0b978df10d5fda2a613e (patch) | |
tree | 6fb948ff52a57a6e2220025a51ef705dd9d98e0c /core/carbs-init | |
parent | d9f26f27eb38c4727ff8446e36fbb0ed7efb0532 (diff) | |
download | repository-38f6aa7f5401d8322daa0b978df10d5fda2a613e.tar.gz |
experimental: add initial cross-compilation support
Diffstat (limited to 'core/carbs-init')
-rwxr-xr-x | core/carbs-init/build | 4 |
1 files changed, 3 insertions, 1 deletions
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 |