On Wed, Oct 09, 2024 at 08:00:05AM +0000, Yao Zi via Tinycc-devel wrote: > On Mon, Oct 07, 2024 at 05:44:47PM -0300, Brian Mayer wrote: > > The program being compiled: > > > > # cat main.c > > #include <stdio.h> > > > > void main(void) { > > printf("hello from lin0\n"); > > } > > > > I'm using musl-1.2.5 compiled on Arch Linux with GCC on x86_64 with > > static libs disabled. > > And could you try linking your program with musl statically? Maybe > something like > > tcc main.c -o main -static
Sorry, I didn't noticed that you had disabled static libraries. Another way to check is simply adding a global variable in your main.c, like #include <stdio.h> int foo; void main(void) { printf("hello from lin0\n"); } Cheers, Yao Zi _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel