File redland-1.0.16-mingw.patch of Package mingw64-redland

--- redland-1.0.16/src/Makefile.am	2012-07-22 02:36:36.000000000 +0200
+++ redland-1.0.16/src/Makefile.am	2013-04-05 01:31:32.245708524 +0200
@@ -118,7 +118,7 @@
 librdf_storage_tstore_la_SOURCES = rdf_storage_tstore.c
 librdf_storage_tstore_la_CPPFLAGS = @TSTORE_CPPFLAGS@
 librdf_storage_tstore_la_LIBADD = @TSTORE_LIBS@ librdf.la
-librdf_storage_tstore_la_LDFLAGS = -module -avoid-version
+librdf_storage_tstore_la_LDFLAGS = -module -no-undefined -avoid-version
 endif
 
 if STORAGE_MYSQL
@@ -126,7 +126,7 @@
 librdf_storage_mysql_la_SOURCES = rdf_storage_mysql.c
 librdf_storage_mysql_la_CPPFLAGS = @MYSQL_CPPFLAGS@
 librdf_storage_mysql_la_LIBADD = @MYSQL_LIBS@ librdf.la
-librdf_storage_mysql_la_LDFLAGS = -module -avoid-version
+librdf_storage_mysql_la_LDFLAGS = -module -no-undefined -avoid-version
 endif
 
 if STORAGE_SQLITE
@@ -137,7 +137,7 @@
 # automake-generated rule to ensure this.
 librdf_storage_sqlite_la_CPPFLAGS = $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) @SQLITE_CPPFLAGS@
 librdf_storage_sqlite_la_LIBADD = @SQLITE_LIBS@ librdf.la
-librdf_storage_sqlite_la_LDFLAGS = -module -avoid-version
+librdf_storage_sqlite_la_LDFLAGS = -module -no-undefined -avoid-version
 endif
 
 if STORAGE_POSTGRESQL
@@ -145,7 +145,7 @@
 librdf_storage_postgresql_la_SOURCES = rdf_storage_postgresql.c
 librdf_storage_postgresql_la_CPPFLAGS = @POSTGRESQL_CPPFLAGS@
 librdf_storage_postgresql_la_LIBADD = @POSTGRESQL_LIBS@ librdf.la
-librdf_storage_postgresql_la_LDFLAGS = -module -avoid-version
+librdf_storage_postgresql_la_LDFLAGS = -module -no-undefined -avoid-version
 endif
 
 if STORAGE_VIRTUOSO
@@ -153,7 +153,7 @@
 librdf_storage_virtuoso_la_SOURCES = rdf_storage_virtuoso.c rdf_query_virtuoso.c rdf_storage_virtuoso_internal.h
 librdf_storage_virtuoso_la_CPPFLAGS = @ODBC_CFLAGS@
 librdf_storage_virtuoso_la_LIBADD = @ODBC_LIBS@ librdf.la
-librdf_storage_virtuoso_la_LDFLAGS = -module -avoid-version
+librdf_storage_virtuoso_la_LDFLAGS = -module -no-undefined -avoid-version
 endif
 
 else
@@ -195,7 +195,7 @@
 EXTRA_DIST=\
 redland.spec redland.spec.in
 
-librdf_la_LDFLAGS = -version-info @LIBRDF_LIBTOOL_VERSION@ \
+librdf_la_LDFLAGS = -no-undefined -version-info @LIBRDF_LIBTOOL_VERSION@ \
 @LIBRDF_LDFLAGS@ @LIBRDF_EXTERNAL_LIBS@
 
 pkgdata_DATA=
--- redland-1.0.16/src/rdf_hash_internal.h	2011-11-18 22:02:58.000000000 +0100
+++ redland-1.0.16/src/rdf_hash_internal.h	2013-04-05 01:47:37.712833490 +0200
@@ -131,6 +131,7 @@
 /* methods */
 
 /* open/create hash with identifier and options  */
+REDLAND_API
 int librdf_hash_open(librdf_hash* hash, const char *identifier, int mode, int is_writable, int is_new, librdf_hash* options);
 /* end hash association */
 int librdf_hash_close(librdf_hash* hash);
--- redland-1.0.16/src/rdf_heuristics.h	2009-04-08 06:31:14.000000000 +0200
+++ redland-1.0.16/src/rdf_heuristics.h	2013-04-05 01:39:16.946627443 +0200
@@ -30,9 +30,13 @@
 extern "C" {
 #endif
 
+REDLAND_API
 char* librdf_heuristic_gen_name(const char *name);
+REDLAND_API
 int librdf_heuristic_is_blank_node(const char *node);
+REDLAND_API
 const char* librdf_heuristic_get_blank_node(const char *node);
+REDLAND_API
 int librdf_heuristic_object_is_literal(const char *object);
 
 #ifdef __cplusplus
--- redland-1.0.16/src/rdf_storage_internal.h	2009-08-26 07:17:24.000000000 +0200
+++ redland-1.0.16/src/rdf_storage_internal.h	2013-04-05 01:45:17.854298214 +0200
@@ -86,6 +86,7 @@
 void librdf_finish_storage(librdf_world *world);
 
 /* class methods */
+REDLAND_API
 librdf_storage_factory* librdf_get_storage_factory(librdf_world* world, const char *name);
 
 
--- redland-1.0.16/src/win32_rdf_config.h.in	2012-06-27 21:58:16.000000000 +0200
+++ redland-1.0.16/src/win32_rdf_config.h.in	2013-04-05 01:28:38.066299773 +0200
@@ -273,7 +273,7 @@
 #define VERSION "@VERSION@"
 
 /* Use POSIX threads */
-#define WITH_THREADS
+/*#undef  WITH_THREADS*/
 
 /* Define to 1 if your processor stores words with the most significant byte
    first (like Motorola and SPARC, unlike Intel and VAX). */
openSUSE Build Service is sponsored by