Hello everyone -
The Perl bindings have worked so far for Windows using MinGW and for Linux. I also managed to get libtcc to build under Mac! Actually, it seems that it always built fine under Mac, but it didn't have all of the symbols. My version of OS X is Lion and is 64 bit, as is evident by the __x86_64__ preprocessor symbol being defined. However, uname reports i386, which is a known behavior on Mac
. (That was for 10.6, but clearly my system is still exhibiting the same behavior.) Because the preprocessor symbol is defined, but disagrees with uname, tcc's build process assumes that I am trying to cross-compile tcc
, and refuses to compile tccrun.c, which is necessary to get tcc_relocate. To solution is easy: pass the "--cpu=x86-64" option to "./configure". The resulting libtcc.a file then has all (two) of tccrun.c's symbols, and we can link!