<div dir="ltr">Thanks.  That is correct.  I'd like to specify -lsomellib for just one engine target in engines/<a href="http://build.info">build.info</a>.<div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 4, 2018 at 12:12 AM Jakob Bohm <<a href="mailto:jb-openssl@wisemo.com">jb-openssl@wisemo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 04/09/2018 08:55, Wouter Verhelst wrote:<br>
> On 9/3/18 9:05 PM, Thomás Inskip wrote:<br>
>> Does anyone know how I can specify that a specific shared library (in <br>
>> this case an engine) is dependent on a system-installed shared <br>
>> library (i.e. not built along with openssl)?.  Basically the <br>
>> equivalent of LDFLAGS += -lsomelib<br>
> The GNU runtime dynamic library will honor DT_NEEDED flags of <br>
> libraries, too. That is,  you can just do LDFLAGS += -lsomelib on a <br>
> library target and it will work. Check libgtk-3.so, for instance:<br>
><br>
> objdump -x /usr/lib/x86_64-linux-gnu/libgtk-3.so<br>
><br>
> will show a bunch of lines like...<br>
><br>
> Dynamic Section:<br>
>   NEEDED               libgdk-3.so.0<br>
>   NEEDED               libgmodule-2.0.so.0<br>
>   NEEDED               libpangocairo-1.0.so.0<br>
>   NEEDED               libX11.so.6<br>
>   NEEDED               libXi.so.6<br>
>   NEEDED               libXcomposite.so.1<br>
>   NEEDED               libXdamage.so.1<br>
> (...)<br>
><br>
> Meaning, all these libraries need to be loaded for libgtk-3.so to work.<br>
><br>
> Beware gotchas:<br>
><br>
> - Not all rtdl implementations do so, so if you're not using a GNU <br>
> platform (e.g., Linux), then check the documentation of your runtime <br>
> dynamic linker.<br>
> - This works for shared libraries, but not for static ones.<br>
><br>
> Regards,<br>
><br>
Please note that the OP is apparently asking how to specify<br>
-lsomelib using the OpenSSL-specific build system, not the<br>
general meaning of using shared libraries on POSIX systems.<br>
<br>
Enjoy<br>
<br>
Jakob<br>
-- <br>
Jakob Bohm, CIO, Partner, WiseMo A/S.  <a href="https://www.wisemo.com" rel="noreferrer" target="_blank">https://www.wisemo.com</a><br>
Transformervej 29, 2860 Søborg, Denmark.  Direct +45 31 13 16 10<br>
This public discussion message is non-binding and may contain errors.<br>
WiseMo - Remote Service Management for PCs, Phones and Embedded<br>
<br>
-- <br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/mailman/listinfo/openssl-users</a><br>
</blockquote></div>