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/gzip/build | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/gzip/build') diff --git a/core/gzip/build b/core/gzip/build index 8d190a07..aecc904a 100755 --- a/core/gzip/build +++ b/core/gzip/build @@ -1,5 +1,7 @@ #!/bin/sh -e +[ "$CPT_CROSS_TRIPLET" ] && + CC="$CPT_CROSS_TRIPLET-cc -L$CPT_ROOT/usr/lib -isystem -isystem $CPT_ROOT/usr/include" make CC="${CC:-cc} -static" install -Dm755 pigz "$1/usr/bin/pigz" -- cgit v1.2.3