[opus] [PATCH] win32: only use dllexport when building DLL

Daniel Verkamp daniel at drv.nu
Sat Apr 9 22:01:22 UTC 2016


On Wed, Oct 21, 2015 at 6:38 PM, Daniel Verkamp <daniel at drv.nu> wrote:
> If building a static library, marking symbols as dllexport causes them
> to be exported from the final executable. For example, run
> objdump -x opus_demo.exe on a --disabled-shared build and look for the
> export table; there should not be one in a normal Win32 .exe file, but
> when linking static libopus, the exe exports all of the opus_* public
> functions.
>
> Use the libtool-defined DLL_EXPORT flag to determine whether we are
> building a DLL and only specify __declspec(dllexport) in that case.

Any updates on this patch (attached again just to be sure)?

It still applies to the current master branch.

Thanks,
-- Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-win32-only-use-dllexport-when-building-DLL.patch
Type: application/octet-stream
Size: 1166 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/opus/attachments/20160409/0fff1978/attachment.obj 


More information about the opus mailing list