Good catch. Thank you for sharing your point of view. I never had that situation before when I had to work on compilers, I guess that's because there weren't the linkers.
Le lun. 25 août 2025 à 19:33, noneofyourbusiness < noneofyourbusin...@danwin1210.de> a écrit : > > 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 Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel