mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-25 12:36:32 +01:00
Restructure
This commit is contained in:
parent
e5cbaa9e04
commit
5a369dc783
77 changed files with 419 additions and 295 deletions
33
sysa/tcc-0.9.27/tcc-patched.kaem
Executable file
33
sysa/tcc-0.9.27/tcc-patched.kaem
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -ex
|
||||
|
||||
cd src/tcc-0.9.27
|
||||
|
||||
# Patch
|
||||
patch -Np0 -i ../../patches/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.
|
||||
tcc-0.9.26 \
|
||||
-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
|
||||
|
||||
cd ../..
|
||||
Loading…
Add table
Add a link
Reference in a new issue