mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 03:26:31 +01:00
Move heirloom lex and flex after musl, replace heirloom yacc with byacc
This way, heirloom-devtools is only linked to a libc with a CDDL-compatible license, making it fully redistributable. Heirloom yacc doesn't work properly with musl libc, but luckily byacc can do its job just fine, so we only need heirloom lex now. Thanks to the more complete libc, and bash being available, heirloom's bootstrap is significantly simplified.
This commit is contained in:
parent
6567973a04
commit
02fb689ce1
6 changed files with 26 additions and 1679 deletions
21
steps/heirloom-devtools-070527/pass1.sh
Normal file
21
steps/heirloom-devtools-070527/pass1.sh
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
# SPDX-FileCopyrightText: 2021-22 fosslinux <fosslinux@aussies.space>
|
||||
# SPDX-FileCopyrightText: 2024 Gábor Stefanik <netrolller.3d@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
src_compile() {
|
||||
cd lex
|
||||
make -f Makefile.mk CC=tcc AR=tcc\ -ar LDFLAGS=-static RANLIB=true
|
||||
cd ..
|
||||
}
|
||||
|
||||
src_install() {
|
||||
mkdir -p "${DESTDIR}${BINDIR}" "${DESTDIR}${LIBDIR}/lex"
|
||||
install lex/lex "${DESTDIR}${BINDIR}"
|
||||
install lex/libl.a "${DESTDIR}${LIBDIR}"
|
||||
install -m 644 lex/ncform "${DESTDIR}${LIBDIR}/lex"
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue