mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-09 04:45:23 +01:00
Revert "Add tcc 0.9.27"
This reverts commit 1ebbd69c79.
This requruies sed first to make a modification.
This commit is contained in:
parent
ce24c8cf3c
commit
238bd677d7
5 changed files with 10 additions and 65 deletions
0
sysa/tcc-0.9.26p1-files/config.h
Normal file
0
sysa/tcc-0.9.26p1-files/config.h
Normal file
|
|
@ -1 +0,0 @@
|
|||
Subproject commit d348a9a51d32cece842b7885d27a411436d7887b
|
||||
|
|
@ -83,8 +83,7 @@ mes-tcc -ar cr ${libdir}/libgetopt.a getopt.o
|
|||
|
||||
cd ../tcc-0.9.26p1
|
||||
|
||||
# boot0 (ref comments here for all boot*)
|
||||
# compile
|
||||
# boot0
|
||||
mes-tcc \
|
||||
-g \
|
||||
-v \
|
||||
|
|
@ -100,7 +99,7 @@ mes-tcc \
|
|||
-D CONFIG_TCC_CRTPREFIX=\"/after/lib\" \
|
||||
-D CONFIG_TCC_ELFINTERP=\"/mes/loader\" \
|
||||
-D CONFIG_TCC_LIBPATHS=\"/after/lib:/after/lib/tcc\" \
|
||||
-D CONFIG_TCC_SYSINCLUDEPATHS=\"/after/include\" \
|
||||
-D CONFIG_TCC_SYSINCLUDEPATHS=\"/after/lib/include\" \
|
||||
-D TCC_LIBGCC=\"/after/lib/libc.a\" \
|
||||
-D TCC_LIBTCC1=\"libtcc1.a\" \
|
||||
-D CONFIG_TCCBOOT=1 \
|
||||
|
|
@ -112,11 +111,9 @@ mes-tcc \
|
|||
-L . \
|
||||
-L /after/lib \
|
||||
tcc.c
|
||||
# Install
|
||||
cp boot0-tcc /after/bin/
|
||||
chmod 755 /after/bin/boot0-tcc
|
||||
cd ../tcc-mes
|
||||
# Recompile libc: crt{1,n,i}, libtcc.a, libc.a
|
||||
boot0-tcc -c -D HAVE_CONFIG_H=1 -I include -I include/linux/x86 -o ${libdir}/crt1.o lib/linux/x86-mes-gcc/crt1.c
|
||||
boot0-tcc -c -D HAVE_CONFIG_H=1 -I include -I include/linux/x86 -o ${libdir}/crtn.o lib/linux/x86-mes-gcc/crtn.c
|
||||
boot0-tcc -c -D HAVE_CONFIG_H=1 -I include -I include/linux/x86 -o ${libdir}/crti.o lib/linux/x86-mes-gcc/crti.c
|
||||
|
|
@ -149,7 +146,7 @@ boot0-tcc \
|
|||
-D CONFIG_TCC_CRTPREFIX=\"/after/lib\" \
|
||||
-D CONFIG_TCC_ELFINTERP=\"/mes/loader\" \
|
||||
-D CONFIG_TCC_LIBPATHS=\"/after/lib:/after/lib/tcc\" \
|
||||
-D CONFIG_TCC_SYSINCLUDEPATHS=\"/after/include\" \
|
||||
-D CONFIG_TCC_SYSINCLUDEPATHS=\"/after/lib/include\" \
|
||||
-D TCC_LIBGCC=\"/after/lib/libc.a\" \
|
||||
-D TCC_LIBTCC1=\"libtcc1.a\" \
|
||||
-D CONFIG_TCCBOOT=1 \
|
||||
|
|
@ -196,7 +193,7 @@ boot1-tcc \
|
|||
-D CONFIG_TCC_CRTPREFIX=\"/after/lib\" \
|
||||
-D CONFIG_TCC_ELFINTERP=\"/mes/loader\" \
|
||||
-D CONFIG_TCC_LIBPATHS=\"/after/lib:/after/lib/tcc\" \
|
||||
-D CONFIG_TCC_SYSINCLUDEPATHS=\"/after/include\" \
|
||||
-D CONFIG_TCC_SYSINCLUDEPATHS=\"/after/lib/include\" \
|
||||
-D TCC_LIBGCC=\"/after/lib/libc.a\" \
|
||||
-D TCC_LIBTCC1=\"libtcc1.a\" \
|
||||
-D CONFIG_TCCBOOT=1 \
|
||||
|
|
@ -243,7 +240,7 @@ boot2-tcc \
|
|||
-D CONFIG_TCC_CRTPREFIX=\"/after/lib\" \
|
||||
-D CONFIG_TCC_ELFINTERP=\"/mes/loader\" \
|
||||
-D CONFIG_TCC_LIBPATHS=\"/after/lib:/after/lib/tcc\" \
|
||||
-D CONFIG_TCC_SYSINCLUDEPATHS=\"/after/include\" \
|
||||
-D CONFIG_TCC_SYSINCLUDEPATHS=\"/after/lib/include\" \
|
||||
-D TCC_LIBGCC=\"/after/lib/libc.a\" \
|
||||
-D TCC_LIBTCC1=\"libtcc1.a\" \
|
||||
-D CONFIG_TCCBOOT=1 \
|
||||
|
|
@ -290,7 +287,7 @@ boot3-tcc \
|
|||
-D CONFIG_TCC_CRTPREFIX=\"/after/lib\" \
|
||||
-D CONFIG_TCC_ELFINTERP=\"/mes/loader\" \
|
||||
-D CONFIG_TCC_LIBPATHS=\"/after/lib:/after/lib/tcc\" \
|
||||
-D CONFIG_TCC_SYSINCLUDEPATHS=\"/after/include\" \
|
||||
-D CONFIG_TCC_SYSINCLUDEPATHS=\"/after/lib/include\" \
|
||||
-D TCC_LIBGCC=\"/after/lib/libc.a\" \
|
||||
-D TCC_LIBTCC1=\"libtcc1.a\" \
|
||||
-D CONFIG_TCCBOOT=1 \
|
||||
|
|
@ -337,7 +334,7 @@ boot4-tcc \
|
|||
-D CONFIG_TCC_CRTPREFIX=\"/after/lib\" \
|
||||
-D CONFIG_TCC_ELFINTERP=\"/mes/loader\" \
|
||||
-D CONFIG_TCC_LIBPATHS=\"/after/lib:/after/lib/tcc\" \
|
||||
-D CONFIG_TCC_SYSINCLUDEPATHS=\"/after/include\" \
|
||||
-D CONFIG_TCC_SYSINCLUDEPATHS=\"/after/lib/include\" \
|
||||
-D TCC_LIBGCC=\"/after/lib/libc.a\" \
|
||||
-D TCC_LIBTCC1=\"libtcc1.a\" \
|
||||
-D CONFIG_TCCBOOT=1 \
|
||||
|
|
@ -374,51 +371,4 @@ chmod 755 /after/bin/tcc
|
|||
tcc -c -D HAVE_CONFIG_H=1 -I include -I include/linux/x86 lib/posix/getopt.c
|
||||
tcc -ar cr ${libdir}/libgetopt.a getopt.o
|
||||
|
||||
# Now compile tcc 0.9.27
|
||||
cd ../tcc-0.9.27
|
||||
|
||||
# Compile the binary
|
||||
tcc \
|
||||
-v \
|
||||
-static \
|
||||
-o tcc \
|
||||
-D TCC_TARGET_I386=1 \
|
||||
-D CONFIG_TCCDIR=\"/after/lib/tcc\" \
|
||||
-D CONFIG_TCC_CRTPREFIX=\"/after/lib\" \
|
||||
-D CONFIG_TCC_ELFINTERP=\"/mes/loader\" \
|
||||
-D CONFIG_TCC_LIBPATHS=\"/after/lib:/after/lib/tcc\" \
|
||||
-D CONFIG_TCC_SYSINCLUDEPATHS=\"/after/include\" \
|
||||
-D TCC_LIBGCC=\"/after/lib/libc.a\" \
|
||||
-D CONFIG_TCC_STATIC=1 \
|
||||
-D CONFIG_USE_LIBGCC=1 \
|
||||
-D TCC_VERSION=\"0.9.27\" \
|
||||
-D ONE_SOURCE=1 \
|
||||
tcc.c
|
||||
|
||||
# Install the binary
|
||||
cp tcc /after/bin/tcc
|
||||
chmod 755 /after/bin/tcc
|
||||
|
||||
# Test
|
||||
tcc -version
|
||||
|
||||
# Recompile libc
|
||||
# libtcc1.a
|
||||
tcc -c -D HAVE_CONFIG_H=1 lib/libtcc1.c
|
||||
tcc -ar cr ${libdir}/tcc/libtcc1.a libtcc1.o
|
||||
cd ../tcc-mes
|
||||
# crt{1,n,i}.o
|
||||
tcc -c -D HAVE_CONFIG_H=1 -I include -I include/linux/x86 -o ${libdir}/crt1.o lib/linux/x86-mes-gcc/crt1.c
|
||||
tcc -c -D HAVE_CONFIG_H=1 -I include -I include/linux/x86 -o ${libdir}/crtn.o lib/linux/x86-mes-gcc/crtn.c
|
||||
tcc -c -D HAVE_CONFIG_H=1 -I include -I include/linux/x86 -o ${libdir}/crti.o lib/linux/x86-mes-gcc/crti.c
|
||||
# libc.a
|
||||
tcc -c -D HAVE_CONFIG_H=1 -I include -I include/linux/x86 -o unified-libc-1.o unified-libc-1.c
|
||||
tcc -c -D HAVE_CONFIG_H=1 -I include -I include/linux/x86 -o unified-libc-2.o unified-libc-2.c
|
||||
tcc -c -D HAVE_CONFIG_H=1 -I include -I include/linux/x86 -o unified-libc-3.o unified-libc-3.c
|
||||
tcc -ar cr ${libdir}/libc+gnu.a unified-libc-1.o unified-libc-2.o unified-libc-3.o
|
||||
cp ${libdir}/libc+gnu.a ${libdir}/libc.a
|
||||
# libgetopt.a
|
||||
tcc -c -D HAVE_CONFIG_H=1 -I include -I include/linux/x86 lib/posix/getopt.c
|
||||
tcc -ar cr ${libdir}/libgetopt.a getopt.o
|
||||
|
||||
cd ..
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue