[Top][All Lists]

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

Re: [Tinycc-devel] Linking with libtcc1.a

From: Elijah Stone
Subject: Re: [Tinycc-devel] Linking with libtcc1.a
Date: Wed, 13 Apr 2022 18:04:35 -0700 (PDT)

In the past, I've added libtcc1.a directly to the link command line, cf tcc -o whatever a.o b.c ... z.o /path/to/libtcc1.a. There may be a better solution.

On Thu, 14 Apr 2022, Ziyao wrote:

Hi list,

I am working to port musl to TinyCC.Because musl is an
implementation of libc,-nostdlib option is used to stop TinyCC from
linking the standard libc to the executable files.

But -nostdlib option also prevents TinyCC from linking libtcc1.a,which
contains serveral runtime functions (e.g. __va_arg).As for GCC,its
manual points out that using -lgcc option may be needed to work with
-nostdlib option.But it seems that there is no way to make TinyCC add
libtcc1.a to the executable file.Simply adding "-ltcc1" does not work
because libtcc1.a is not in the usual library searching path.

Will there be a solution for this?


Tinycc-devel mailing list

reply via email to

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