tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] [issue] macos: tcc cannot self-host with --disable-static


From: avih
Subject: [Tinycc-devel] [issue] macos: tcc cannot self-host with --disable-static
Date: Fri, 10 Jul 2020 09:41:36 +0000 (UTC)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]