mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-24 20:16:32 +01:00
Move tcc 0.9.27 after bzip2.
This also allows to merge two builds of tcc 0.9.27. Drop tcc 0.9.27 git submodule.
This commit is contained in:
parent
f030a3a74e
commit
419cd74d92
29 changed files with 98 additions and 166 deletions
|
|
@ -1,21 +1,31 @@
|
|||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
|
||||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
set -ex
|
||||
|
||||
cd src/tcc-0.9.27
|
||||
cd build
|
||||
|
||||
# Extract
|
||||
bunzip2 ../src/${pkg}.tar.bz2
|
||||
tar xf ../src/${pkg}.tar
|
||||
cd ${pkg}
|
||||
|
||||
# Create config.h
|
||||
catm config.h
|
||||
|
||||
# Compile the binary
|
||||
tcc \
|
||||
# Patch
|
||||
patch -Np0 -i ../../patches/static-link.patch
|
||||
patch -Np0 -i ../../patches/ignore-static-inside-array.patch
|
||||
|
||||
# Compile
|
||||
tcc-0.9.26 \
|
||||
-v \
|
||||
-static \
|
||||
-o tcc \
|
||||
-o ${bindir}/tcc \
|
||||
-D TCC_TARGET_I386=1 \
|
||||
-D CONFIG_TCCDIR=\"${libdir}/tcc\" \
|
||||
-D CONFIG_TCC_CRTPREFIX=\"${libdir}\" \
|
||||
|
|
@ -29,17 +39,14 @@ tcc \
|
|||
-D ONE_SOURCE=1 \
|
||||
tcc.c
|
||||
|
||||
# Install the binary
|
||||
cp tcc ${bindir}/tcc
|
||||
chmod 755 ${bindir}/tcc
|
||||
|
||||
# Test
|
||||
tcc -version
|
||||
|
||||
# Recompile libc
|
||||
cd ../../src/mes-libc/
|
||||
kaem --file ../../compile-libc.kaem
|
||||
|
||||
cd ../..
|
||||
|
||||
# Checksums
|
||||
fletcher16 checksums/tcc-0.9.27
|
||||
sha256sum -c checksums/tcc-0.9.27
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue