mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-25 04:26:31 +01:00
Rebuild musl with fewer patches.
This commit is contained in:
parent
5ef1baeccf
commit
f3cea25b87
8 changed files with 55 additions and 1 deletions
26
sysa/musl-1.1.24/binutils-rebuild.sh
Executable file
26
sysa/musl-1.1.24/binutils-rebuild.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
src_prepare() {
|
||||
default_src_prepare
|
||||
|
||||
# tcc does not support complex types
|
||||
rm -rf src/complex
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
CC=tcc ./configure \
|
||||
--host=i386 \
|
||||
--disable-shared \
|
||||
--prefix=/after \
|
||||
--libdir=/after/lib/musl/ \
|
||||
--includedir=/after/include/musl
|
||||
|
||||
# configure script creates this file
|
||||
test -f /dev/null && rm /dev/null
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make CROSS_COMPILE= CFLAGS="-DSYSCALL_NO_TLS" AS_CMD='as -o $@ $<'
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue