Create empty files for tcc inside chroot
This commit is contained in:
parent
f3ad93a1ae
commit
866909fbf7
|
@ -58,14 +58,12 @@ cp mes.kaem tmp/after/
|
|||
cp mes-files/mescc.scm tmp/after/bin/
|
||||
cp mes-files/config.h tmp/after/mes/include/mes/
|
||||
cp mes-files/config.h tmp/after/tcc-mes/include/mes/
|
||||
mkdir tmp/after/mes/{bin,m2}
|
||||
mkdir -p tmp/after/mes/{bin,m2}
|
||||
|
||||
# tcc
|
||||
cp tcc.kaem tmp/after/
|
||||
cp -r tcc-0.9.26 tmp/after/
|
||||
cp -r tcc-0.9.27 tmp/after/
|
||||
touch tmp/after/tcc-0.9.27/config.h
|
||||
touch tmp/after/tcc-0.9.26/config.h
|
||||
pushd tmp/after/tcc-0.9.26
|
||||
ln -s ../mes/module .
|
||||
ln -s ../mes/mes .
|
||||
|
|
|
@ -17,6 +17,10 @@ MES=${bindir}/mes
|
|||
|
||||
# Initial tcc
|
||||
cd tcc-0.9.26
|
||||
|
||||
# Create config.h
|
||||
catm config.h
|
||||
|
||||
${MES} --no-auto-compile -e main ${bindir}/mescc.scm -- \
|
||||
-S \
|
||||
-o tcc.s \
|
||||
|
@ -379,6 +383,9 @@ tcc -ar cr ${libdir}/libgetopt.a getopt.o
|
|||
# Now compile tcc 0.9.27
|
||||
cd ../tcc-0.9.27
|
||||
|
||||
# Create config.h
|
||||
catm config.h
|
||||
|
||||
# Compile the binary
|
||||
tcc \
|
||||
-v \
|
||||
|
|
Loading…
Reference in New Issue