diff options
author | Cem Keylan <cem@ckyln.com> | 2020-12-28 01:30:32 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-12-28 01:30:32 +0300 |
commit | 3ebbf97f41d658d56896944eb1ca20c38505f80d (patch) | |
tree | 95df91a5eb485847d231acfea5acc950cb22afbf /core/musl/build | |
parent | c72c7a36ebf9383a74af60e3be23374f10791771 (diff) | |
download | repository-3ebbf97f41d658d56896944eb1ca20c38505f80d.tar.gz |
musl: fix cross build
Diffstat (limited to 'core/musl/build')
-rwxr-xr-x | core/musl/build | 4 |
1 files changed, 3 insertions, 1 deletions
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 |