Figured that out, eventually. the tccelf.c must be enclosed to #undef __FreeBSD__ #endif block, the CONFIG_TCC_CRT_PREFIX must be set to the directory with linux crt* files, and library search path must point to the linux libraries.
The resulting binary cannot run on FreeBSD on linux emulation, but they happily run on native linux. I tested that with hello world program, did not try 'serious' stuff yet. sergey _______________________________________________ Tinycc-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/tinycc-devel
