diff options
Diffstat (limited to 'dev-libs/libyaml/files/libyaml-0.1.7-mingw-no-undefined.patch')
-rw-r--r-- | dev-libs/libyaml/files/libyaml-0.1.7-mingw-no-undefined.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-libs/libyaml/files/libyaml-0.1.7-mingw-no-undefined.patch b/dev-libs/libyaml/files/libyaml-0.1.7-mingw-no-undefined.patch new file mode 100644 index 000000000000..5e0ef5249413 --- /dev/null +++ b/dev-libs/libyaml/files/libyaml-0.1.7-mingw-no-undefined.patch @@ -0,0 +1,32 @@ +--- a/include/yaml.h ++++ b/include/yaml.h +@@ -26,7 +26,9 @@ extern "C" { + + /** The public API declaration. */ + +-#ifdef _WIN32 ++#if defined(__MINGW32__) ++# define YAML_DECLARE(type) type ++#elif defined(WIN32) + # if defined(YAML_DECLARE_STATIC) + # define YAML_DECLARE(type) type + # elif defined(YAML_DECLARE_EXPORT) +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -1,4 +1,4 @@ + AM_CPPFLAGS = -I$(top_srcdir)/include + 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 = -release $(YAML_LT_RELEASE) -version-info $(YAML_LT_CURRENT):$(YAML_LT_REVISION):$(YAML_LT_AGE) ++libyaml_la_LDFLAGS = -no-undefined -release $(YAML_LT_RELEASE) -version-info $(YAML_LT_CURRENT):$(YAML_LT_REVISION):$(YAML_LT_AGE) +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -312,7 +312,7 @@ top_srcdir = @top_srcdir@ + AM_CPPFLAGS = -I$(top_srcdir)/include + 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 = -release $(YAML_LT_RELEASE) -version-info $(YAML_LT_CURRENT):$(YAML_LT_REVISION):$(YAML_LT_AGE) ++libyaml_la_LDFLAGS = -no-undefined -release $(YAML_LT_RELEASE) -version-info $(YAML_LT_CURRENT):$(YAML_LT_REVISION):$(YAML_LT_AGE) + all: all-am + + .SUFFIXES: |