<html><head>
<style id="css_styles">
blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
a img { border: 0px; }
li[style='text-align: center;'], li[style='text-align: right;'] { list-style-position: inside;}
body { font-family: Segoe UI; font-size: 12pt; }
</style>
</head>
<body><div>Dear All,</div><div><br /></div>Looking at t_linux.pas, this code is common (also for other system files):<div><br /></div><div>if (isdll) then<br />begin<br /> Add('INPUT(');<br /> Add(sysrootpath+info.DynamicLinker);<br /> Add(')');<br />end;</div><div><br /></div><div>And also:</div><div><br /></div><div>if libraryadded and not(linklibc) and not(isdll) and (tf_section_threadvars in target_info.flags) then</div><div> Add('-l:'+ExtractFileName(defdynlinker));</div><div><br /></div><div>When cross-compiling, this linker cannot be found in a flat directory with library-files (including the dynamic linker).</div><div>The only way to solve is using a -XR , and some extra directories. But this causes the linker not to be found on the target itself.</div><div><br /></div><div>Before resorting to all kinds of trickery, I would like to ask if there is a more elegant way of handling this.</div><div><br /></div><div>Executables can easily be cross-compiled. Its the compilation of libs that causes problems.</div><div><br /></div><div>Greetings and thanks.</div><div><div><br /></div><div><br /></div></div></body></html>