gst/parse: Also pass -DGST_EXPORTS here
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 23 May 2016 13:14:01 +0000 (18:44 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 23 May 2016 13:24:16 +0000 (14:24 +0100)
This static library gets included directly into libgstreamer-1.0.so, so it needs
the same GST_EXPORTS definition as the rest of the code that's compiled into
that otherwise it will try to find the constants it uses from gstinfo via DLL
importing (__declspec(dllimport)).

Fixes https://ci.gstreamer.net/job/cerbero-cross-mingw32/4393/

gst/parse/Makefile.am

index bb873aa..844349a 100644 (file)
@@ -14,7 +14,7 @@ EXTRA_DIST = \
 nodist_libgstparse_la_SOURCES = lex.priv_gst_parse_yy.c grammar.tab.c grammar.tag.h parse_lex.h
 CLEANFILES += grammar.tab.c lex.priv_gst_parse_yy.c
 
-libgstparse_la_CFLAGS = $(GST_ALL_CFLAGS) -DYYMALLOC=g_malloc -DYYFREE=g_free
+libgstparse_la_CFLAGS = $(GST_ALL_CFLAGS) -DGST_EXPORTS -DYYMALLOC=g_malloc -DYYFREE=g_free
 libgstparse_la_LIBADD = $(GST_ALL_LIBS)
 
 noinst_HEADERS = types.h