Skip to content

Instantly share code, notes, and snippets.

@shirosaki
Created February 24, 2012 10:10
Show Gist options
  • Save shirosaki/1899923 to your computer and use it in GitHub Desktop.
Save shirosaki/1899923 to your computer and use it in GitHub Desktop.
yaml patch
--- a/configure.ac 2011-05-29 14:55:42 +0900
+++ b/configure.ac 2012-02-24 17:48:52 +0900
@@ -58,6 +58,13 @@
AC_CHECK_PROG(DOXYGEN, [doxygen], [true], [false])
AM_CONDITIONAL(DOXYGEN, [test "$DOXYGEN" = true])
+# Checks for host.
+case "$host_os" in
+ mingw*)
+ YAML_LT_LDFLAGS='-no-undefined';;
+esac
+AC_SUBST(YAML_LT_LDFLAGS)
+
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h])
--- a/src/Makefile.am 2011-05-29 14:55:42 +0900
+++ b/src/Makefile.am 2012-02-24 17:42:56 +0900
@@ -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 = -release $(YAML_LT_RELEASE) -version-info $(YAML_LT_CURRENT):$(YAML_LT_REVISION):$(YAML_LT_AGE) $(YAML_LT_LDFLAGS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment