[Issue 20690] Static LibCurl
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 21 15:43:06 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20690
kinke <kinke at gmx.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kinke at gmx.net
--- Comment #5 from kinke <kinke at gmx.net> ---
(In reply to Richard Cattermole from comment #1)
> The dynamic loading facilities such as dlsym and GetProcAddress can be used
> to look for symbols in the host executable image.
>
> As per: https://github.com/dlang/phobos/blob/d5dc0115/std/net/curl.d#L4206
>
> It is configured to do this by default, allowing for static linking into the
> executable.
In that case, the custom static curl library will almost certainly need to be
built with a special config, using `__declspec(dllexport)` for the
implementations, so that the executable will export the symbols for
GetProcAddress() usage.
--
More information about the Digitalmars-d-bugs
mailing list