From 1c8711816ead2e4d5e7da20b216096955aa49cfd Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 23 May 2016 18:44:01 +0530 Subject: [PATCH] gst/parse: Also pass -DGST_EXPORTS here 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/parse/Makefile.am b/gst/parse/Makefile.am index bb873aa857..844349a104 100644 --- a/gst/parse/Makefile.am +++ b/gst/parse/Makefile.am @@ -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