diff options
author | Cem Keylan <cem@ckyln.com> | 2022-04-14 14:22:33 +0200 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2022-04-14 14:22:33 +0200 |
commit | da0b030174302f47fe73914daa3a5669e1a4788c (patch) | |
tree | 8bb0aac7fdfb54b29779744576b188aec7f510d3 /core/musl/build | |
parent | ed01fa869653130af6849d8769775caa1012dc3b (diff) | |
download | repository-da0b030174302f47fe73914daa3a5669e1a4788c.tar.gz |
musl: bump to 1.2.3
Diffstat (limited to 'core/musl/build')
-rwxr-xr-x | core/musl/build | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/core/musl/build b/core/musl/build index ec4352f5..153f8dd2 100755 --- a/core/musl/build +++ b/core/musl/build @@ -5,6 +5,18 @@ # we are only supporting i686 and x86_64. sys_arch="$(uname -m)" +# Bootstrap if the package isn't installed yet. +cpt l -q musl || { + ./configure \ + --prefix="$PWD/tmp" + + make ALL_TOOLS+=obj/musl-gcc + make ALL_TOOLS+=obj/musl-gcc lib/musl-gcc.specs + make ALL_TOOLS+=obj/musl-gcc install + cp lib/musl-gcc.specs "$PWD/tmp/lib" + export CC="$PWD/tmp/bin/musl-gcc" +} + ./configure \ --prefix=/usr \ --syslibdir=/usr/lib @@ -28,10 +40,5 @@ clinst -Dm755 -t "$1/usr/include/sys" cdefs.h queue.h tree.h # Install getconf. "${CC:=cc}" --static getconf.c -o "$1/usr/bin/getconf" -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 -esac - # Install getent clinst -Dm755 -t "$1/usr/bin" getent |