On 18/04/2025 19:02, Camm Maguire wrote:
Greetings!
Is there an equivalent to
gcc -shared -Wl,-undefined -Wl,dynamic_lookup o/boot.c -o unixport/libboot.so
or
gcc -shared -Wl,--allow-shlib-undefined o/boot.c -o unixport/libboot.so
No.
PE/COFF executables work very differently to ELF, and the dynamic
library which provides a symbol must be known *at link-time*.
The following FAQs touch upon this subject, even if they (perhaps
unhelpfully) don't mention it directly.
https://cygwin.com/faq.html#faq.programming.linker
https://cygwin.com/faq.html#faq.programming.unix-gui
(That last one should probably also reference flexdll as a possible
solution, if it's absolutely necessary to emulate ELF-like load-time
symbol resolution.)
P.S.:
Please compose new email, rather than replying to an unrelated one, when
raising a new topic.