File libytnef-1.5-dll.patch of Package mingw64-libytnef
--- libytnef-1.5/configure.ac 2004-09-14 19:24:18.000000000 +0200
+++ libytnef-1.5/configure.ac 2009-01-22 16:19:51.000000000 +0100
@@ -18,7 +18,17 @@
AC_C_BIGENDIAN
# Checks for library functions.
-AC_FUNC_MALLOC
+# This test requires running an executable
+# and cannot be executed when cross-compiling
+if test x$cross_compiling != xyes; then
+ AC_FUNC_MALLOC
+else
+ AC_MSG_WARN([
+
+Could not determine presence of compliant malloc function
+while cross-compiling. Assuming that it is present.
+])
+fi
AC_CHECK_FUNCS([memset])
AC_CONFIG_FILES([Makefile])
--- libytnef-1.5/Makefile.am 2004-03-04 15:27:49.000000000 +0100
+++ libytnef-1.5/Makefile.am 2009-01-22 16:46:32.000000000 +0100
@@ -1,8 +1,10 @@
lib_LTLIBRARIES = libytnef.la
libytnef_la_SOURCES = ytnef.c
-nobase_include_HEADERS = ytnef.h \
+libytnef_includedir = $(includedir)/libytnef
+libytnef_include_HEADERS = ytnef.h \
mapi.h mapidefs.h mapitags.h \
tnef-types.h tnef-errors.h
+libytnef_la_LDFLAGS = -no-undefined
EXTRA_DIST = libytnef.spec