freemint / m68k-atari-mint-gcc

Fork of GNU's gcc with support for the m68k-atari-mint target
https://github.com/freemint/m68k-atari-mint-gcc/wiki
Other
26 stars 7 forks source link

New mintelf toolchain tries to locate shared libraries #24

Closed th-otto closed 1 year ago

th-otto commented 1 year ago

Just noticed that when linking with -Wl,-verbose:

attempt to open /opt/cross-mintelf/lib64/gcc/m68k-atari-mintelf/13.2.0/libgcc.so failed
attempt to open /opt/cross-mintelf/lib64/gcc/m68k-atari-mintelf/13.2.0/libgcc.a succeeded

Not a big deal as long as those *.so don't exist, but still an unneeded lookup, and something that previous toolchain did not do. Any idea what might be causing this?

vinriviere commented 1 year ago

Indeed, I noticed that yesterday. Not expected, because we want to turn off shared library support. So that's suboptimal. No idea what would happen if such library was found, certainly bad things.

th-otto commented 1 year ago

Must be some magic in the linker. My other toolchains (gcc-12 etc.) now behave the same.

th-otto commented 1 year ago

Found it. Fixed in https://github.com/freemint/m68k-atari-mint-binutils-gdb/commit/99cc418c887d4b5c44891c04dd344787671a5c4b

vinriviere commented 1 year ago

Ah. Good job.