List:Commits« Previous MessageNext Message »
From:Rafal Somla Date:May 31 2011 7:33pm
Subject:bzr commit into mysql-5.5 branch (rafal.somla:3416)
View as plain text  
#At file:///D:/source/bzr2/mysql-5.5/ based on revid:jimmy.yang@stripped

 3416 Rafal Somla	2011-05-31
      Fix new build depency for clients using libmysql on Windows.
      Since the Windows authentication support has been added to libmysql, this library depends on the system Secur32 library. Consequently, clients which are linked against libmysql should be also linked with Secur32 (in addition to ws2_32).
      In MS VC++ it is possible to embed information about required libraries into object file using #pragma directive. This patch adds such directive when the Windows authentiaction support is compiled. This is similar to analogous #pragma for ws2_32 library in my_init.c

=== modified file 'libmysql/authentication_win/'
--- a/libmysql/authentication_win/	2011-04-28 19:17:29 +0000
+++ b/libmysql/authentication_win/	2011-05-31 19:32:51 +0000
@@ -20,6 +20,16 @@
 #include "common.h"
+  The following MS C++ specific pragma embeds a comment in the resulting
+  object file. A "lib" comment tells the linker to use the specified 
+  library, thus the dependency is handled automgically.
+#ifdef _MSC_VER
+#pragma comment(lib, "Secur32")
 static int win_auth_client_plugin_init(char*, size_t, int, va_list)
   return 0;

Attachment: [text/bzr-bundle] bzr/
bzr commit into mysql-5.5 branch (rafal.somla:3416) Rafal Somla31 May