diff -Naur libyaml-0.2.1.orig/src/Makefile.am libyaml-0.2.1/src/Makefile.am
--- libyaml-0.2.1.orig/src/Makefile.am	2018-08-11 22:56:40.978639200 -0400
+++ libyaml-0.2.1/src/Makefile.am	2018-08-11 22:58:12.897888900 -0400
@@ -1,4 +1,4 @@
-AM_CPPFLAGS = -I$(top_srcdir)/include -Wall
+AM_CPPFLAGS = -I$(top_srcdir)/include -Wall -DYAML_DECLARE_EXPORT
 lib_LTLIBRARIES = libyaml.la
 libyaml_la_SOURCES = yaml_private.h api.c reader.c scanner.c parser.c loader.c writer.c emitter.c dumper.c
 libyaml_la_LDFLAGS = -no-undefined -release $(YAML_LT_RELEASE) -version-info $(YAML_LT_CURRENT):$(YAML_LT_REVISION):$(YAML_LT_AGE)
