Am 12.01.2018 um 21:56 schrieb Vincent Torri:
> On Fri, Jan 12, 2018 at 9:39 PM, Alexei Podtelezhnikov
> <[email protected]> wrote:
>>
>>
>>> Not really. dllexport/dllimport is platform- and not compiler-specific.
>>> GCC and Clang on MinGW also support them
>>
>> FreeType do not have DLL support for those tools yet. Patches are welcome.
> 
> I've just tried freetype 2.9 with MSYS2 + mingw-w64 :
> 
> ./configure --host=i686-w64-mingw32 --disable-static
> make -j7
> 
> and I have my DLL


Yes, that's right. There's no need to adapt the build system to create
DLLs with MinGW/Cygwin. Libtool already takes care of it. The
dllexport/dllimport dance is necessary to mark/access the symbols that
are exported by the DLL. All untagged symbols are usually hidden, except
a .def file is used to list the exports. If the functions are supposed
to be dynamically loadable, e.g. with LoadLibrary and GetProcAddress,
they should be tagged accordingly.

Martin

_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to