From c7fa4a5be885c13689c021bce364041a47ccd890 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 24 Apr 2024 17:56:19 +0300 Subject: Release version 8.0.15+16 Add support for building with MinGW GCC. --- libmysqlclient/README-DEV | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) (limited to 'libmysqlclient/README-DEV') diff --git a/libmysqlclient/README-DEV b/libmysqlclient/README-DEV index b69995c..e619bc5 100644 --- a/libmysqlclient/README-DEV +++ b/libmysqlclient/README-DEV @@ -6,9 +6,45 @@ Symlink the required upstream components and provide our own implementations for auto-generated headers: $ ln -s ../upstream/LICENSE -$ ln -s ../../upstream/{vio,sql,mysys,mysys_ssl,libbinlogevents,libmysql} mysql -$ ln -s ../../upstream/include mysql/mysql -$ ln -s mysql/mysql_version.h.in mysql/version.h.in +#$ ln -s ../../upstream/{vio,sql,mysys,mysys_ssl,libbinlogevents,libmysql} mysql +$ ln -s ../../upstream/{vio,sql,mysys_ssl,libbinlogevents,libmysql} mysql +#$ ln -s ../../upstream/include mysql/mysql +$ ln -s ../../upstream/include/mysql_version.h.in mysql/version.h.in + +Add support for building with MinGW GCC: + +$ mkdir -p mysql/mysql +$ pushd mysql/mysql +$ ln -s ../../../upstream/include/*.h . +$ mv m_ctype.h m_ctype.h.orig +$ cp m_ctype.h.orig m_ctype.h +$ mv my_dir.h my_dir.h.orig +$ cp my_dir.h.orig my_dir.h +$ mkdir -p mysql/components/services +$ cd mysql/components/services +$ ln -s ../../../../../../upstream/include/mysql/components/services/*.h . +$ mv my_io_bits.h my_io_bits.h.orig +$ cp my_io_bits.h.orig my_io_bits.h +$ cd .. +$ ln -s ../../../../../upstream/include/mysql/components/*.h . +$ cd .. +$ ln -s ../../../../upstream/include/mysql/psi . +$ ln -s ../../../../upstream/include/mysql/*.h . +$ popd +$ mkdir -p mysql/mysys +$ pushd mysql/mysys +$ ln -s ../../../upstream/mysys/*.{h,cc} . +$ mv my_thr_init.cc my_thr_init.cc.orig +$ cp my_thr_init.cc.orig my_thr_init.cc +$ mv stacktrace.cc stacktrace.cc.orig +$ cp stacktrace.cc.orig stacktrace.cc +$ popd + +$ git apply mingw.patch + +Note that the above patches are produced by the following commands: + +$ git diff > Also make sure all source files are UTF-8-encoded: -- cgit v1.1