Hello,

Sorry for bugging the list. I found the answer using some makefile debug tools.

For the record, I have included what worked for me below.

Thanks for a great compiler, by the way.

Cheers,
Klaus

> git clone git://repo.or.cz/tinycc.git
> cd tinycc
> ./configure --with-selinux
...
> make LDFLAGS=-static
...
> ldd ./tcc
        not a dynamic executable
> ./tcc -run examples/ex1.c
Hello World

________________________________________
Fra: Tinycc-devel [[email protected]] på vegne 
af Klaus Ebbe Grue [[email protected]]
Sendt: 5. marts 2019 16:13
Til: [email protected]
Emne: [Tinycc-devel] Statically linked tcc

Hello,

Is there an easy way to make a statically linked tcc ?

I have googled and grep'ed around and made some long shots like 
"LDFLAGS=-static make" and "CFLAGS=-static make" and "make tcc_p". I also found 
some discussions in the mail archives from 2011 and 2014. But "ldd ./tcc" keeps 
saying that tcc is dynamically linked.

Cheers,
Klaus

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to