Self-hosting with static linking works fine:
[ -e ./conftest.c ] || { echo error: not tcc root; exit 1; } rm -rf ./bld ./bldself ./dist1 2>/dev/null || : mkdir bld && cd bld && \ ../configure --prefix=$(pwd)/../dist1 && make && make test && make install cd .. && mkdir bldself && cd bldself && \ ../configure --cc=$(pwd)/../dist1/bin/tcc && make && make test However, if changing the last line to: ../configure --disable-static --cc=$(pwd)/../dist1/bin/tcc && make && make test then `make' fails at the end on this line: <...>/../dist1/bin/tcc -dynamiclib -current_version 0.9.27 -compatibility_version 0.9.27 -install_name @rpath/libtcc.dylib -o libtcc.dylib libtcc.o tccpp.o tccgen.o tccelf.o tccasm.o tccrun.o x86_64-gen.o x86_64-link.o i386-asm.o tccmacho.o with: tcc: error: invalid option -- '-current_version' make: *** [libtcc.dylib] Error 1 I guess it's somewhat expected that these options are not currently supported, but I think it would be nice if tcc could self-host a dynamically linked tcc. Avi _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel