tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Statically linked tcc


From: Klaus Ebbe Grue
Subject: Re: [Tinycc-devel] Statically linked tcc
Date: Tue, 5 Mar 2019 19:00:54 +0000

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 address@hidden på vegne af Klaus Ebbe Grue address@hidden
Sendt: 5. marts 2019 16:13
Til: address@hidden
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
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel



reply via email to

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