<div dir="auto"><div><br><div class="gmail_extra"><div class="gmail_quote">On 17 Aug 2017 21:21, "Graeme Geldenhuys" <<a href="mailto:mailinglists@geldenhuys.co.uk">mailinglists@geldenhuys.co.uk</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="quoted-text">On 2017-08-17 16:52, Martin Schreiber wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Exactly. So why not use the SONAME in the Pascal binding unit instead to use<br>
the base name as Free Pascal currently does in xlib.pp for example?<br>
</blockquote>
<br></div>
I forked the xlib, xutils and x units from FPC and tried just that. It made no difference. When I compiled the project with the -Cn command line parameter I reviewed the ppas.sh and <project>.res file. The .res file has a INPUT section near the end listing all dependent libraries. They are translated to the same as when you use GCC's -l command line parameter. Only the base name of the library is used. Also, apparently the Unix/Linux linker (FPC doesn't have it's own - only for Windows) doesn't support versioned library names as command line parameters. So I don't think there is much FPC can do - unless I'm still not understanding the whole compiling and linking process, unless FPC implements their own linker under Unix-type OSes too.<div class="quoted-text"></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">You can use -l:libgreat.so.1 with gcc to link to a specific library version (iirc).</div><div dir="auto"><br></div><div dir="auto">Henry</div></div>