win32: Don't use dllexport/import when only building statically
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 21 Jun 2016 14:19:15 +0000 (19:49 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 23 Jun 2016 22:39:45 +0000 (23:39 +0100)
commit48088867db20094c8aafc7f50ce1bc0d8c633df5
tree2ff6d2cff89e13e1d3caeaa0aa24284f0ea99087
parent084bb505f4e045ffba3701615e2a073f9d8a5d57
win32: Don't use dllexport/import when only building statically

If the prototypes in the public API have dllimport in them when building
statically on Windows, the compiler will look for symbols with symbol
mangling and indirection corresponding to a DLL. This will cause a build
failure when trying to link tests/examples/etc.

External users of GStreamer also need to define -DGST_STATIC_COMPILATION
if they want to link to static gstreamer libraries on Windows.

A similar version of this patch has been committed to all gstreamer
repositories.

https://bugzilla.gnome.org/show_bug.cgi?id=767463
configure.ac
gst/gstconfig.h.in