<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Thorsten Otto via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Mo., 7. Feb. 2022, 13:00:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:'Noto Sans';font-size:9pt;font-weight:400;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-size:9pt">In the long term, it would be nice to have some automatic selection of the correct libraries. Otherwise it will not be possible to produce 68k binaries with a compiler that was compiled for 68020, since that will still pull in 68020 code from the libraries.</span><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"></p></div></blockquote></div><div dir="auto"><br></div><div dir="auto">A FPC compiled for 68020 can generate 68000 code just fine and the other way round (assuming of course that it was compiled without bugs ;) ). It's just that you need to provide it with the correctly compiled units. You can supply those in the fpc.cfg and with $fpcsubarch you can get the name of the currently selected processor to use in a path name (the MS-DOS target makes use of this for example).</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div></div>