From 3ebbf97f41d658d56896944eb1ca20c38505f80d Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 28 Dec 2020 01:30:32 +0300 Subject: musl: fix cross build --- core/musl/build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/musl/build b/core/musl/build index d5971790..efa221f6 100755 --- a/core/musl/build +++ b/core/musl/build @@ -18,6 +18,8 @@ kinstall_t() { patch -p0 < CVE-2020-28928.patch +[ "$CPT_CROSS_TRIPLET" ] && CC=$CPT_CROSS_TRIPLET-cc AR=$CPT_CROSS_TRIPLET-ar + cpt-configure make @@ -41,7 +43,7 @@ kinstall_t 755 "$1/usr/include/sys" cdefs.h queue.h tree.h case $sys_arch in i*86) "$CC" -c __stack_chk_fail_local.c -o __stack_chk_fail_local.o - ar r "$1/usr/lib/libssp_nonshared.a" __stack_chk_fail_local.o + "$AR" r "$1/usr/lib/libssp_nonshared.a" __stack_chk_fail_local.o esac # Install getent -- cgit v1.2.3