> It looks odd but the following patch worked for me. If you have any 
> suggestions I would enjoy exchanging with you.
LD_LIBRARY_PATH can contain colon-separated paths, that patch won't work in 
that case
Additionally, ld doesn't behave like this.
Why add more tcc-specific behavior?

on alpine, using GNU ld 2.45 (test.o contains main)
this fails: LD_LIBRARY_PATH=/usr/lib ld -nostdlib test.o /usr/lib/cr*.o -lc
this works: ld -nostdlib test.o /usr/lib/cr*.o -L/usr/lib -lc

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

Reply via email to