[Libreoffice-commits] core.git: libmariadb/StaticLibrary_mariadb.mk
Michael Stahl
mstahl at redhat.com
Wed Apr 17 07:47:48 PDT 2013
libmariadb/StaticLibrary_mariadb.mk | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 010dd7a05360a1aebebc3381ba96aa5ff4534543
Author: Michael Stahl <mstahl at redhat.com>
Date: Wed Apr 17 16:44:57 2013 +0200
libmariadb: fix unresolved dlopen etc. with MSVC 2008
Change-Id: I8268ac340f62a84bfae774194e8a6a50c8a707f3
diff --git a/libmariadb/StaticLibrary_mariadb.mk b/libmariadb/StaticLibrary_mariadb.mk
index 2f70dcb..338701f 100644
--- a/libmariadb/StaticLibrary_mariadb.mk
+++ b/libmariadb/StaticLibrary_mariadb.mk
@@ -22,6 +22,11 @@ $(eval $(call gb_StaticLibrary_set_include,mariadblib,\
-I$(call gb_UnpackedTarball_get_dir,mariadb)/include \
))
+# This is needed for MSVC 2008: it somehow finds a dlopen somewhere
+# but the static library then contains unreferenced symbols.
+# This macro enables a re-definition to native Win32 APIs in my_global.h.
+$(eval $(call gb_StaticLibrary_add_cflags,mariadblib,-DHAVE_DLOPEN))
+
$(eval $(call gb_StaticLibrary_add_generated_cobjects,mariadblib,\
UnpackedTarball/mariadb/libmysql/array \
UnpackedTarball/mariadb/libmysql/bchange \
More information about the Libreoffice-commits
mailing list