mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 03:26:31 +01:00
Restructure
This commit is contained in:
parent
e5cbaa9e04
commit
5a369dc783
77 changed files with 419 additions and 295 deletions
|
|
@ -1,34 +0,0 @@
|
|||
#!/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