A linking failure, at least with the latest tcc (4410dbd): ``` cc -o tcc tcc.o libtcc.a -lm -lpthread -g ld: error: undefined symbol: tcc_new >>> referenced by tcc.c:283 >>> lto.tmp:(main) ``` etc. The following fixes it: ``` diff --git a/buildtcc.sh b/buildtcc.sh index 32faa74..81bc042 100644 --- a/buildtcc.sh +++ b/buildtcc.sh @@ -11,7 +11,7 @@ git clone git://repo.or.cz/tinycc.git cd tinycc export CC=cc -export CFLAGS='-O3 -flto' +export CFLAGS='-O3' ./configure \ --prefix=thirdparty/tcc \ ``` Ideally the script should `exit 1` when any step fails rather than try to copy things in `v/thirdparty/tcc`