<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Adriaan van Os via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Di., 29. Okt. 2024, 11:29:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Trying to build the FPC RTL as a dynamic library on MacOS (with make shared), I run into several <br>
problems<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I don't know when that was tested last in any platform... </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>2. When I do the linking pass by hand, ld complains about unknown symbols<br>
<br>
ld: Undefined symbols:<br>
FPC_RESLOCATION, referenced from:<br>
_TC_$SYSINIT_$$_SYSINITENTRYINFORMATION in sysinit.o<br>
FPC_RESOURCESTRINGTABLES, referenced from:<br>
_TC_$SYSINIT_$$_SYSINITENTRYINFORMATION in sysinit.o<br>
FPC_RESSTRINITTABLES, referenced from:<br>
_TC_$SYSINIT_$$_SYSINITENTRYINFORMATION in sysinit.o<br>
FPC_THREADVARTABLES, referenced from:<br>
_TC_$SYSINIT_$$_SYSINITENTRYINFORMATION in sysinit.o<br>
INITFINAL, referenced from:<br>
_TC_$SYSINIT_$$_SYSINITENTRYINFORMATION in sysinit.o<br>
_PASCALMAIN, referenced from:<br>
_TC_$SYSINIT_$$_SYSINITENTRYINFORMATION in sysinit.o<br>
__stklen, referenced from:<br>
_SYSINIT_$$_FPC_SYSTEMMAIN$LONGINT$PPANSICHAR$PPANSICHAR in sysinit.o<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">sysinit should be part of the program, not the library. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>