mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-19 17:53:00 +01:00
Add patched tcc
Forces static link.
This commit is contained in:
parent
1e822361a9
commit
d62ed4c55a
4 changed files with 62 additions and 3 deletions
34
sysa/tcc-patched.kaem
Executable file
34
sysa/tcc-patched.kaem
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -ex
|
||||
|
||||
# Vars
|
||||
prefix=/after
|
||||
libdir=${prefix}/lib
|
||||
bindir=${prefix}/bin
|
||||
|
||||
# Patch
|
||||
patch -Np0 -i ../patches/tcc/static-link.patch
|
||||
|
||||
# Compile
|
||||
## We have to use 0.9.26 to recompile 0.9.27, 0.9.27 is not self-hosting for
|
||||
## whatever reason.
|
||||
boot5-tcc \
|
||||
-v \
|
||||
-static \
|
||||
-o ${bindir}/tcc \
|
||||
-D TCC_TARGET_I386=1 \
|
||||
-D CONFIG_TCCDIR=\"${libdir}/tcc\" \
|
||||
-D CONFIG_TCC_CRTPREFIX=\"${libdir}\" \
|
||||
-D CONFIG_TCC_ELFINTERP=\"/mes/loader\" \
|
||||
-D CONFIG_TCC_LIBPATHS=\"${libdir}:${libdir}/tcc\" \
|
||||
-D CONFIG_TCC_SYSINCLUDEPATHS=\"${prefix}/include\" \
|
||||
-D TCC_LIBGCC=\"${libdir}/libc.a\" \
|
||||
-D CONFIG_TCC_STATIC=1 \
|
||||
-D CONFIG_USE_LIBGCC=1 \
|
||||
-D TCC_VERSION=\"0.9.27\" \
|
||||
-D ONE_SOURCE=1 \
|
||||
tcc.c
|
||||
|
||||
# Test
|
||||
tcc -version
|
||||
Loading…
Add table
Add a link
Reference in a new issue