Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mysql-extras:master commit in: /
Date: Tue, 28 May 2013 19:16:47
Message-Id: 1369768588.28c61c3141efe139494ab81f135963b6b04408d8.robbat2@gentoo
1 commit: 28c61c3141efe139494ab81f135963b6b04408d8
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 28 19:15:38 2013 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Tue May 28 19:16:28 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mysql-extras.git;a=commit;h=28c61c31
7
8 Tweak shared patch for 5.1.69.
9
10 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
11
12 ---
13 00000_index.txt | 7 +-
14 02040_all_embedded-library-shared-5.1.69.patch | 2298 ++++++++++++++++++++++++
15 2 files changed, 2304 insertions(+), 1 deletion(-)
16
17 diff --git a/00000_index.txt b/00000_index.txt
18 index 585ccbf..22de958 100644
19 --- a/00000_index.txt
20 +++ b/00000_index.txt
21 @@ -301,7 +301,12 @@
22 @@ Take libmysqld to be a proper shared library.
23
24 @patch 02040_all_embedded-library-shared-5.1.60.patch
25 -@ver 5.01.60.00 to 5.01.99.99
26 +@ver 5.01.60.00 to 5.01.68.99
27 +@pn mysql
28 +@@ Take libmysqld to be a proper shared library.
29 +
30 +@patch 02040_all_embedded-library-shared-5.1.69.patch
31 +@ver 5.01.69.00 to 5.01.99.99
32 @pn mysql
33 @@ Take libmysqld to be a proper shared library.
34
35
36 diff --git a/02040_all_embedded-library-shared-5.1.69.patch b/02040_all_embedded-library-shared-5.1.69.patch
37 new file mode 100644
38 index 0000000..60ea554
39 --- /dev/null
40 +++ b/02040_all_embedded-library-shared-5.1.69.patch
41 @@ -0,0 +1,2298 @@
42 +Convert all of the static libraries for the embedded libmysqld to build as
43 +shared.
44 +
45 +This enables amarok's mysql extension to properly build as a shared object,
46 +without statically including libmysqld or nor forcing libmysqld to be built
47 +with -fPIC.
48 +
49 +Thanks to <pageexec@××××××××.hu> for the @plt fixes.
50 +Thanks to Diego Elio Pettenò <flameeyes@g.o> for all the extensive build
51 +system help with libtool conversions.
52 +Thanks to Maciej Mrozowski <reavertm@g.o> for working in the redo of the
53 +patch for mysql-5.1.
54 +
55 +Gentoo-Bug: 238487
56 +Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=238487
57 +MySQL-Bug-URL: http://bugs.mysql.com/bug.php?id=39288
58 +MySQL-Bug: 39288
59 +MySQL-Lists-URL: http://lists.mysql.com/internals/35947
60 +X-Patch-URL: http://bugs.gentoo.org/attachment.cgi?id=188019&action=view
61 +Signed-off-by: Jorge Manuel B. S. Vicetto <jmbsvicetto@g.o>
62 +Signed-off-by: Robin H. Johnson <robbat2@g.o>
63 +Signed-off-by: Kristian Nielsen <knielsen@×××××××××××.org>
64 +
65 +=== modified file 'client/Makefile.am'
66 +---
67 + client/Makefile.am | 11 -
68 + config/ac-macros/plugins.m4 | 107 ++++++++-----
69 + configure.in | 8 -
70 + dbug/Makefile.am | 6
71 + extra/Makefile.am | 4
72 + libmysqld/Makefile.am | 184 ++++++++---------------
73 + libmysqld/examples/Makefile.am | 10 -
74 + mysys/Makefile.am | 42 ++---
75 + netware/BUILD/compile-linux-tools | 16 +-
76 + netware/Makefile.am | 4
77 + regex/Makefile.am | 6
78 + server-tools/instance-manager/Makefile.am | 8 -
79 + sql/Makefile.am | 12 -
80 + storage/archive/Makefile.am | 23 +-
81 + storage/archive/plug.in | 2
82 + storage/blackhole/Makefile.am | 11 -
83 + storage/blackhole/plug.in | 2
84 + storage/csv/Makefile.am | 9 -
85 + storage/csv/plug.in | 2
86 + storage/example/Makefile.am | 11 -
87 + storage/federated/Makefile.am | 15 +
88 + storage/federated/plug.in | 3
89 + storage/heap/Makefile.am | 37 +++-
90 + storage/heap/plug.in | 3
91 + storage/innobase/Makefile.am | 40 ++---
92 + storage/innobase/plug.in | 2
93 + storage/innodb_plugin/Makefile.am | 13 -
94 + storage/myisam/Makefile.am | 118 ++++++++------
95 + storage/myisam/plug.in | 4
96 + storage/myisammrg/Makefile.am | 20 ++
97 + storage/myisammrg/plug.in | 3
98 + storage/ndb/config/type_ndbapitest.mk.am | 31 ++-
99 + storage/ndb/config/type_ndbapitools.mk.am | 33 ++--
100 + storage/ndb/config/win-libraries | 2
101 + storage/ndb/src/common/util/Makefile.am | 6
102 + storage/ndb/src/cw/cpcd/Makefile.am | 6
103 + storage/ndb/src/kernel/Makefile.am | 7
104 + storage/ndb/src/kernel/blocks/Makefile.am | 10 -
105 + storage/ndb/src/kernel/blocks/backup/Makefile.am | 6
106 + storage/ndb/src/kernel/blocks/dbdict/Makefile.am | 12 -
107 + storage/ndb/src/kernel/blocks/dbdih/Makefile.am | 6
108 + storage/ndb/src/kernel/blocks/dblqh/Makefile.am | 6
109 + storage/ndb/src/kernel/blocks/dbtup/Makefile.am | 6
110 + storage/ndb/src/kernel/vm/Makefile.am | 82 +++++-----
111 + storage/ndb/src/mgmclient/Makefile.am | 65 ++++----
112 + storage/ndb/src/mgmsrv/Makefile.am | 70 ++++----
113 + storage/ndb/src/ndbapi/Makefile.am | 98 ++++++------
114 + storage/ndb/test/run-test/Makefile.am | 6
115 + strings/Makefile.am | 16 +-
116 + unittest/mysys/Makefile.am | 15 +
117 + unittest/strings/Makefile.am | 9 -
118 + unittest/unit.pl | 2
119 + vio/Makefile.am | 4
120 + 53 files changed, 622 insertions(+), 612 deletions(-)
121 +
122 +Index: client/Makefile.am
123 +===================================================================
124 +--- client/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
125 ++++ client/Makefile.am 2010-11-27 15:02:49.000000000 +0100
126 +@@ -75,7 +75,8 @@ mysqlimport_CFLAGS= -DTHREAD -UUNDEF_TH
127 + mysqlimport_LDADD = $(CXXLDFLAGS) $(CLIENT_THREAD_LIBS) \
128 + @CLIENT_EXTRA_LDFLAGS@ \
129 + $(LIBMYSQLCLIENT_LA) \
130 +- $(top_builddir)/mysys/libmysys.a
131 ++ $(top_builddir)/mysys/libmysys.la \
132 ++ $(top_builddir)/strings/libmystrings.la
133 +
134 + mysqlshow_SOURCES= mysqlshow.c
135 +
136 +@@ -84,15 +85,17 @@ mysqlslap_CFLAGS= -DTHREAD -UMYSQL_CLIE
137 + mysqlslap_LDADD = $(CXXLDFLAGS) $(CLIENT_THREAD_LIBS) \
138 + @CLIENT_EXTRA_LDFLAGS@ \
139 + $(LIBMYSQLCLIENT_LA) \
140 +- $(top_builddir)/mysys/libmysys.a
141 ++ $(top_builddir)/mysys/libmysys.la \
142 ++ $(top_builddir)/strings/libmystrings.la
143 +
144 + mysqltest_SOURCES= mysqltest.cc
145 + mysqltest_CXXFLAGS= -DTHREAD -UMYSQL_CLIENT_NO_THREADS
146 + mysqltest_LDADD = $(CXXLDFLAGS) $(CLIENT_THREAD_LIBS) \
147 + @CLIENT_EXTRA_LDFLAGS@ \
148 + $(LIBMYSQLCLIENT_LA) \
149 +- $(top_builddir)/mysys/libmysys.a \
150 +- $(top_builddir)/regex/libregex.a \
151 ++ $(top_builddir)/mysys/libmysys.la \
152 ++ $(top_builddir)/regex/libregex.la \
153 ++ $(top_builddir)/strings/libmystrings.la \
154 + $(CLIENT_THREAD_LIBS)
155 +
156 + mysql_upgrade_SOURCES= mysql_upgrade.c \
157 +Index: config/ac-macros/plugins.m4
158 +===================================================================
159 +--- config/ac-macros/plugins.m4.orig 2010-11-27 15:02:45.000000000 +0100
160 ++++ config/ac-macros/plugins.m4 2010-11-27 15:02:49.000000000 +0100
161 +@@ -115,18 +115,32 @@ dnl ------------------------------------
162 + dnl Macro: MYSQL_PLUGIN_STATIC
163 + dnl
164 + dnl SYNOPSIS
165 +-dnl MYSQL_PLUGIN_STATIC([name],[libmyplugin.a])
166 ++dnl MYSQL_PLUGIN_STATIC([name],[libmyplugin.a],[libmyplugin_embedded.a])
167 + dnl
168 + dnl DESCRIPTION
169 +-dnl Declare the name for the static library
170 ++dnl Declare the name for the static library
171 ++dnl
172 ++dnl Third argument is optional, only needed for special plugins that depend
173 ++dnl on server internals and have source files that must be compiled specially
174 ++dnl with -DEMBEDDED_LIBRARY for embedded server. If specified, the third
175 ++dnl argument is used to link embedded server instead of the second.
176 + dnl
177 + dnl ---------------------------------------------------------------------------
178 +
179 + AC_DEFUN([MYSQL_PLUGIN_STATIC],[
180 + MYSQL_REQUIRE_PLUGIN([$1])
181 + m4_define([MYSQL_PLUGIN_STATIC_]AS_TR_CPP([$1]), [$2])
182 ++ ifelse($#, 3, [
183 ++ m4_define([MYSQL_PLUGIN_EMBEDDED_]AS_TR_CPP([$1]), [$3])
184 ++ ])
185 + ])
186 +
187 ++dnl ---------------------------------------------------------------------------
188 ++dnl Substitution variable to use to compile source files specially for
189 ++dnl embedded server.
190 ++dnl To be used by plugins that have sources that depend on server internals.
191 ++dnl ---------------------------------------------------------------------------
192 ++AC_SUBST([plugin_embedded_defs], ["-DEMBEDDED_LIBRARY -DMYSQL_SERVER"])
193 +
194 + dnl ---------------------------------------------------------------------------
195 + dnl Macro: MYSQL_PLUGIN_DYNAMIC
196 +@@ -254,29 +268,6 @@ AC_DEFUN([MYSQL_PLUGIN_ACTIONS],[
197 + ])
198 +
199 + dnl ---------------------------------------------------------------------------
200 +-dnl Macro: MYSQL_PLUGIN_DEPENDS_ON_MYSQL_INTERNALS
201 +-dnl
202 +-dnl SYNOPSIS
203 +-dnl MYSQL_PLUGIN_DEPENDS_ON_MYSQL_INTERNALS([name],[file name])
204 +-dnl
205 +-dnl DESCRIPTION
206 +-dnl Some modules in plugins keep dependance on structures
207 +-dnl declared in sql/ (THD class usually)
208 +-dnl That has to be fixed in the future, but until then
209 +-dnl we have to recompile these modules when we want to
210 +-dnl to compile server parts with the different #defines
211 +-dnl Normally it happens when we compile the embedded server
212 +-dnl Thus one should mark such files in his handler using this macro
213 +-dnl (currently only one such a file per plugin is supported)
214 +-dnl
215 +-dnl ---------------------------------------------------------------------------
216 +-
217 +-AC_DEFUN([MYSQL_PLUGIN_DEPENDS_ON_MYSQL_INTERNALS],[
218 +- MYSQL_REQUIRE_PLUGIN([$1])
219 +- m4_define([MYSQL_PLUGIN_DEPENDS_ON_MYSQL_INTERNALS_]AS_TR_CPP([$1]), [$2])
220 +-])
221 +-
222 +-dnl ---------------------------------------------------------------------------
223 + dnl Macro: MYSQL_CONFIGURE_PLUGINS
224 + dnl
225 + dnl SYNOPSIS
226 +@@ -336,11 +327,25 @@ AC_DEFUN([_MYSQL_EMIT_CHECK_PLUGIN],[
227 + [MYSQL_PLUGIN_DYNAMIC_]AS_TR_CPP([$1]),
228 + [MYSQL_PLUGIN_MANDATORY_]AS_TR_CPP([$1]),
229 + [MYSQL_PLUGIN_DISABLED_]AS_TR_CPP([$1]),
230 +- [MYSQL_PLUGIN_DEPENDS_ON_MYSQL_INTERNALS_]AS_TR_CPP([$1]),
231 ++ [MYSQL_PLUGIN_EMBEDDED_]AS_TR_CPP([$1]),
232 + [MYSQL_PLUGIN_ACTIONS_]AS_TR_CPP([$1])
233 + )
234 + ])
235 +
236 ++# __MYSQL_EMIT_CHECK_PLUGIN arguments:
237 ++#
238 ++# 1 - plugin identifying name
239 ++# 2 - plugin identifying name, with `-' replaced by `_'
240 ++# 3 - plugin long name
241 ++# 4 - plugin description
242 ++# 5 - mysql_plugin_define (eg. WITH_xxx_STORAGE_ENGINE)
243 ++# 6 - directory
244 ++# 7 - static target (if supports static build)
245 ++# 8 - dynamic target (if supports dynamic build)
246 ++# 9 - mandatory flag
247 ++# 10 - disabled flag
248 ++# 11 - static target for libmysqld (if different from mysqld)
249 ++# 12 - actions
250 + AC_DEFUN([__MYSQL_EMIT_CHECK_PLUGIN],[
251 + m4_ifdef([$5],[
252 + AH_TEMPLATE($5, [Include ]$4[ into mysqld])
253 +@@ -407,6 +412,7 @@ AC_DEFUN([__MYSQL_EMIT_CHECK_PLUGIN],[
254 + ])
255 + AC_SUBST([plugin_]$2[_shared_target], "$8")
256 + AC_SUBST([plugin_]$2[_static_target], [""])
257 ++ AC_SUBST([plugin_]$2[_embedded_static_target], [""])
258 + [with_plugin_]$2=yes
259 + AC_MSG_RESULT([plugin])
260 + m4_ifdef([$6],[
261 +@@ -421,32 +427,47 @@ AC_DEFUN([__MYSQL_EMIT_CHECK_PLUGIN],[
262 + ])
263 + else
264 + m4_ifdef([$7],[
265 +- ifelse(m4_bregexp($7, [^lib[^.]+\.a$]), -2, [
266 +-dnl change above "-2" to "0" to enable this section
267 +-dnl Although this is "pretty", it breaks libmysqld build
268 +- m4_ifdef([$6],[
269 +- mysql_use_plugin_dir="$6"
270 +- mysql_plugin_libs="$mysql_plugin_libs -L[\$(top_builddir)]/$6"
271 +- ])
272 +- mysql_plugin_libs="$mysql_plugin_libs dnl
273 +-[-l]m4_bregexp($7, [^lib\([^.]+\)], [\1])"
274 +- ], m4_bregexp($7, [^\\\$]), 0, [
275 ++ ifelse(m4_bregexp($7, [^\\\$]), 0, [
276 + m4_ifdef([$6],[
277 + mysql_use_plugin_dir="$6"
278 + ])
279 + mysql_plugin_libs="$mysql_plugin_libs $7"
280 ++ m4_ifdef([$11],[
281 ++ mysql_embedded_plugin_libs="$mysql_embedded_plugin_libs $11"
282 ++ ],[
283 ++ mysql_embedded_plugin_libs="$mysql_embedded_plugin_libs $7"
284 ++ ])
285 + ], [
286 + m4_ifdef([$6],[
287 + mysql_use_plugin_dir="$6"
288 + mysql_plugin_libs="$mysql_plugin_libs \$(top_builddir)/$6/$7"
289 ++ m4_ifdef([$11],[
290 ++ mysql_embedded_plugin_libs="$mysql_embedded_plugin_libs \$(top_builddir)/$6/$11"
291 ++ ],[
292 ++ mysql_embedded_plugin_libs="$mysql_embedded_plugin_libs \$(top_builddir)/$6/$7"
293 ++ ])
294 + ],[
295 + mysql_plugin_libs="$mysql_plugin_libs $7"
296 ++ m4_ifdef([$11],[
297 ++ mysql_embedded_plugin_libs="$mysql_embedded_plugin_libs $11"
298 ++ ],[
299 ++ mysql_embedded_plugin_libs="$mysql_embedded_plugin_libs $7"
300 ++ ])
301 + ])
302 + ])
303 + m4_ifdef([$5],[
304 + AC_DEFINE($5)
305 + ])
306 + AC_SUBST([plugin_]$2[_static_target], "$7")
307 ++ m4_ifdef([$11], [
308 ++ if test "$with_embedded_server" = "yes"; then
309 ++ AC_SUBST([plugin_]$2[_embedded_static_target], "$11")
310 ++ else
311 ++ AC_SUBST([plugin_]$2[_embedded_static_target], [""])
312 ++ fi
313 ++ ], [
314 ++ AC_SUBST([plugin_]$2[_embedded_static_target], [""])
315 ++ ])
316 + AC_SUBST([plugin_]$2[_shared_target], [""])
317 + ],[
318 + m4_ifdef([$6],[
319 +@@ -463,12 +484,6 @@ dnl Although this is "pretty", it breaks
320 + mysql_plugin_defs="$mysql_plugin_defs, [builtin_]$2[_plugin]"
321 + [with_plugin_]$2=yes
322 + AC_MSG_RESULT([yes])
323 +- m4_ifdef([$11],[
324 +- condition_dependent_plugin_modules="$condition_dependent_plugin_modules m4_bregexp($11, [[^/]+$], [\&])"
325 +- condition_dependent_plugin_objects="$condition_dependent_plugin_objects m4_bregexp($11, [[^/]+\.], [\&o])"
326 +- condition_dependent_plugin_links="$condition_dependent_plugin_links $6/$11"
327 +- condition_dependent_plugin_includes="$condition_dependent_plugin_includes -I[\$(top_srcdir)]/$6/m4_bregexp($11, [^.+[/$]], [\&])"
328 +- ])
329 + fi
330 + fi
331 +
332 +@@ -516,6 +531,14 @@ dnl
333 + ])
334 + ])
335 +
336 ++dnl If not building libmysqld embedded server, then there is no need to build
337 ++dnl shared object versions of static plugins.
338 ++if test "$with_embedded_server" = "yes"; then
339 ++ AC_SUBST([plugin_static_if_no_embedded], "")
340 ++else
341 ++ AC_SUBST([plugin_static_if_no_embedded], "-static")
342 ++fi
343 ++
344 + AC_DEFUN([_MYSQL_EMIT_PLUGIN_ACTIONS],[
345 + ifelse($#, 0, [], $#, 1, [
346 + _MYSQL_EMIT_PLUGIN_ACTION([$1])
347 +Index: configure.in
348 +===================================================================
349 +--- configure.in.orig 2010-11-27 15:02:45.000000000 +0100
350 ++++ configure.in 2010-11-27 19:41:49.000000000 +0100
351 +@@ -2483,8 +2483,6 @@ MYSQL_STORAGE_ENGINE(partition, partitio
352 +
353 + dnl -- ndbcluster requires partition to be enabled
354 +
355 +-MYSQL_CONFIGURE_PLUGINS([none])
356 +-
357 + # Only build client code?
358 + AC_ARG_WITH(server,
359 + [ --without-server Only build the client.],
360 +@@ -2498,6 +2496,8 @@ AC_ARG_WITH(embedded-server,
361 + [with_embedded_server=no]
362 + )
363 +
364 ++MYSQL_CONFIGURE_PLUGINS([none])
365 ++
366 + AC_ARG_WITH(query_cache,
367 + [ --without-query-cache Do not build query cache.],
368 + [with_query_cache=$withval],
369 +@@ -2801,9 +2801,6 @@ if test "$with_server" != "no" -o "$THRE
370 + then
371 + AC_DEFINE([THREAD], [1],
372 + [Define if you want to have threaded code. This may be undef on client code])
373 +- # Avoid _PROGRAMS names
374 +- THREAD_LOBJECTS="thr_alarm.o thr_lock.o thr_mutex.o thr_rwlock.o my_pthread.o my_thr_init.o mf_keycache.o"
375 +- AC_SUBST(THREAD_LOBJECTS)
376 + fi
377 + AM_CONDITIONAL(NEED_THREAD, test "$with_server" != "no" -o "$THREAD_SAFE_CLIENT" != "no")
378 +
379 +@@ -2831,6 +2828,7 @@ AC_SUBST(server_scripts)
380 +
381 + AC_SUBST(mysql_plugin_dirs)
382 + AC_SUBST(mysql_plugin_libs)
383 ++AC_SUBST(mysql_embedded_plugin_libs)
384 + AC_SUBST(mysql_plugin_defs)
385 +
386 +
387 +Index: dbug/Makefile.am
388 +===================================================================
389 +--- dbug/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
390 ++++ dbug/Makefile.am 2010-11-27 19:42:26.000000000 +0100
391 +@@ -16,10 +16,10 @@
392 + # MA 02111-1307, USA
393 +
394 + INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
395 +-LDADD = libdbug.a ../mysys/libmysys.a ../strings/libmystrings.a
396 +-pkglib_LIBRARIES = libdbug.a
397 ++LDADD = libdbug.la ../mysys/libmysys.la ../strings/libmystrings.la $(ZLIB_LIBS)
398 ++noinst_LTLIBRARIES = libdbug.la
399 + noinst_HEADERS = dbug_long.h
400 +-libdbug_a_SOURCES = dbug.c sanity.c
401 ++libdbug_la_SOURCES = dbug.c sanity.c
402 + EXTRA_DIST = CMakeLists.txt example1.c example2.c example3.c \
403 + user.r monty.doc dbug_add_tags.pl \
404 + my_main.c main.c factorial.c dbug_analyze.c \
405 +Index: extra/Makefile.am
406 +===================================================================
407 +--- extra/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
408 ++++ extra/Makefile.am 2010-11-27 15:02:49.000000000 +0100
409 +@@ -15,8 +15,8 @@
410 +
411 + INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include \
412 + -I$(top_srcdir)/sql
413 +-LDADD = @CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a \
414 +- ../dbug/libdbug.a ../strings/libmystrings.a \
415 ++LDADD = @CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.la \
416 ++ ../dbug/libdbug.la ../strings/libmystrings.la \
417 + $(ZLIB_LIBS)
418 + BUILT_SOURCES= $(top_builddir)/include/mysqld_error.h \
419 + $(top_builddir)/include/sql_state.h \
420 +Index: libmysqld/Makefile.am
421 +===================================================================
422 +--- libmysqld/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
423 ++++ libmysqld/Makefile.am 2010-11-27 20:58:00.000000000 +0100
424 +@@ -17,95 +17,91 @@
425 + #
426 + # This file is public domain and comes with NO WARRANTY of any kind
427 +
428 +-MYSQLDATAdir = $(localstatedir)
429 +-MYSQLSHAREdir = $(pkgdatadir)
430 +-MYSQLBASEdir= $(prefix)
431 +-MYSQLLIBdir= $(libdir)
432 +-pkgplugindir = $(pkglibdir)/plugin
433 ++MYSQLDATAdir = $(localstatedir)
434 ++MYSQLSHAREdir = $(pkgdatadir)
435 ++MYSQLBASEdir = $(prefix)
436 ++MYSQLLIBdir = $(libdir)
437 ++pkgplugindir = $(pkglibdir)/plugin
438 +
439 +-EXTRA_DIST = libmysqld.def CMakeLists.txt
440 +-DEFS = -DEMBEDDED_LIBRARY -DMYSQL_SERVER \
441 ++EXTRA_DIST = libmysqld.def CMakeLists.txt
442 ++DEFS = -DEMBEDDED_LIBRARY -DMYSQL_SERVER \
443 + -DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
444 + -DMYSQL_DATADIR="\"$(MYSQLDATAdir)\"" \
445 + -DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
446 + -DPLUGINDIR="\"$(pkgplugindir)\""
447 +-INCLUDES= -I$(top_builddir)/include -I$(top_srcdir)/include \
448 ++INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include \
449 + -I$(top_builddir)/sql -I$(top_srcdir)/sql \
450 + -I$(top_srcdir)/sql/examples \
451 + -I$(top_srcdir)/regex \
452 +- $(openssl_includes) @ZLIB_INCLUDES@ \
453 +- @condition_dependent_plugin_includes@
454 ++ $(openssl_includes) $(ZLIB_INCLUDES) \
455 ++ @condition_dependent_plugin_includes@ \
456 ++ $(ndbcluster_includes)
457 +
458 +-noinst_LIBRARIES = libmysqld_int.a
459 +-pkglib_LIBRARIES = libmysqld.a
460 +-SUBDIRS = . examples
461 ++pkglib_LTLIBRARIES = libmysqld.la
462 ++SUBDIRS = . examples
463 + libmysqld_sources= libmysqld.c lib_sql.cc emb_qcache.cc
464 + libmysqlsources = errmsg.c get_password.c libmysql.c client.c pack.c \
465 +- my_time.c
466 ++ my_time.c
467 +
468 + noinst_HEADERS = embedded_priv.h emb_qcache.h
469 +
470 +-sqlsources = derror.cc field.cc field_conv.cc strfunc.cc filesort.cc \
471 +- ha_ndbcluster.cc ha_ndbcluster_cond.cc \
472 +- ha_ndbcluster_binlog.cc ha_partition.cc \
473 +- handler.cc sql_handler.cc \
474 +- hostname.cc init.cc password.c \
475 +- item.cc item_buff.cc item_cmpfunc.cc item_create.cc \
476 +- item_func.cc item_strfunc.cc item_sum.cc item_timefunc.cc \
477 +- item_geofunc.cc item_subselect.cc item_row.cc\
478 +- item_xmlfunc.cc \
479 +- key.cc lock.cc log.cc sql_state.c \
480 +- log_event.cc rpl_record.cc \
481 +- log_event_old.cc rpl_record_old.cc \
482 +- protocol.cc net_serv.cc opt_range.cc \
483 +- opt_sum.cc procedure.cc records.cc sql_acl.cc \
484 +- sql_load.cc discover.cc sql_locale.cc \
485 +- sql_profile.cc \
486 +- sql_analyse.cc sql_base.cc sql_cache.cc sql_class.cc \
487 +- sql_crypt.cc sql_db.cc sql_delete.cc sql_error.cc sql_insert.cc \
488 +- sql_lex.cc sql_list.cc sql_manager.cc sql_map.cc \
489 +- scheduler.cc sql_connect.cc sql_parse.cc \
490 +- sql_prepare.cc sql_derived.cc sql_rename.cc \
491 +- sql_select.cc sql_do.cc sql_show.cc set_var.cc \
492 +- sql_string.cc sql_table.cc sql_test.cc sql_udf.cc \
493 +- sql_update.cc sql_yacc.cc table.cc thr_malloc.cc time.cc \
494 +- unireg.cc uniques.cc sql_union.cc hash_filo.cc \
495 +- spatial.cc gstream.cc sql_help.cc tztime.cc sql_cursor.cc \
496 +- sp_head.cc sp_pcontext.cc sp.cc sp_cache.cc sp_rcontext.cc \
497 +- parse_file.cc sql_view.cc sql_trigger.cc my_decimal.cc \
498 +- rpl_filter.cc sql_partition.cc sql_builtin.cc sql_plugin.cc \
499 +- debug_sync.cc \
500 +- sql_tablespace.cc \
501 +- rpl_injector.cc my_user.c partition_info.cc \
502 +- sql_servers.cc event_parse_data.cc
503 +-
504 +-libmysqld_int_a_SOURCES= $(libmysqld_sources)
505 +-nodist_libmysqld_int_a_SOURCES= $(libmysqlsources) $(sqlsources)
506 +-libmysqld_a_SOURCES=
507 +-
508 +-sqlstoragesources = $(EXTRA_libmysqld_a_SOURCES)
509 +-storagesources = @condition_dependent_plugin_modules@
510 +-storageobjects = @condition_dependent_plugin_objects@
511 +-storagesourceslinks = @condition_dependent_plugin_links@
512 ++sqlsources = derror.cc field.cc field_conv.cc strfunc.cc filesort.cc \
513 ++ ha_ndbcluster.cc ha_ndbcluster_cond.cc \
514 ++ ha_ndbcluster_binlog.cc ha_partition.cc \
515 ++ handler.cc sql_handler.cc \
516 ++ hostname.cc init.cc password.c \
517 ++ item.cc item_buff.cc item_cmpfunc.cc item_create.cc \
518 ++ item_func.cc item_strfunc.cc item_sum.cc item_timefunc.cc \
519 ++ item_geofunc.cc item_subselect.cc item_row.cc\
520 ++ item_xmlfunc.cc \
521 ++ key.cc lock.cc log.cc sql_state.c \
522 ++ log_event.cc rpl_record.cc \
523 ++ log_event_old.cc rpl_record_old.cc \
524 ++ protocol.cc net_serv.cc opt_range.cc \
525 ++ opt_sum.cc procedure.cc records.cc sql_acl.cc \
526 ++ sql_load.cc discover.cc sql_locale.cc \
527 ++ sql_profile.cc \
528 ++ sql_analyse.cc sql_base.cc sql_cache.cc sql_class.cc \
529 ++ sql_crypt.cc sql_db.cc sql_delete.cc sql_error.cc sql_insert.cc \
530 ++ sql_lex.cc sql_list.cc sql_manager.cc sql_map.cc \
531 ++ scheduler.cc sql_connect.cc sql_parse.cc \
532 ++ sql_prepare.cc sql_derived.cc sql_rename.cc \
533 ++ sql_select.cc sql_do.cc sql_show.cc set_var.cc \
534 ++ sql_string.cc sql_table.cc sql_test.cc sql_udf.cc \
535 ++ sql_update.cc sql_yacc.cc table.cc thr_malloc.cc time.cc \
536 ++ unireg.cc uniques.cc sql_union.cc hash_filo.cc \
537 ++ spatial.cc gstream.cc sql_help.cc tztime.cc sql_cursor.cc \
538 ++ sp_head.cc sp_pcontext.cc sp.cc sp_cache.cc sp_rcontext.cc \
539 ++ parse_file.cc sql_view.cc sql_trigger.cc my_decimal.cc \
540 ++ rpl_filter.cc sql_partition.cc sql_builtin.cc sql_plugin.cc \
541 ++ debug_sync.cc \
542 ++ sql_tablespace.cc \
543 ++ rpl_injector.cc my_user.c partition_info.cc \
544 ++ sql_servers.cc event_parse_data.cc
545 +
546 + # automake misses these
547 + sql_yacc.cc sql_yacc.$(YACC_HEXT): $(top_srcdir)/sql/sql_yacc.yy
548 +
549 + # The following libraries should be included in libmysqld.a
550 +-INC_LIB= $(top_builddir)/regex/libregex.a \
551 +- $(top_builddir)/mysys/libmysys.a \
552 +- $(top_builddir)/strings/libmystrings.a \
553 +- $(top_builddir)/dbug/libdbug.a \
554 +- $(top_builddir)/vio/libvio.a \
555 +- @NDB_SCI_LIBS@ \
556 +- @mysql_plugin_libs@ \
557 +- $(yassl_inc_libs)
558 ++INC_LIB= $(top_builddir)/regex/libregex.la \
559 ++ $(top_builddir)/mysys/libmysys.la \
560 ++ $(top_builddir)/strings/libmystrings.la \
561 ++ $(top_builddir)/dbug/libdbug.la \
562 ++ $(top_builddir)/vio/libvio.la \
563 ++ @ZLIB_LIBS@ @LIBDL@ \
564 ++ $(NDB_SCI_LIBS) \
565 ++ $(mysql_embedded_plugin_libs) \
566 ++ $(yassl_inc_libs)
567 +
568 + if HAVE_YASSL
569 +-yassl_inc_libs= $(top_builddir)/extra/yassl/src/.libs/libyassl.a \
570 +- $(top_builddir)/extra/yassl/taocrypt/src/.libs/libtaocrypt.a
571 ++yassl_inc_libs= $(top_builddir)/extra/yassl/src/libyassl.la \
572 ++ $(top_builddir)/extra/yassl/taocrypt/src/libtaocrypt.la
573 + endif
574 +
575 ++libmysqld_la_SOURCES= $(libmysqld_sources)
576 ++nodist_libmysqld_la_SOURCES= $(libmysqlsources) $(sqlsources)
577 ++libmysqld_la_LIBADD = $(INC_LIB)
578 ++
579 + # Storage engine specific compilation options
580 + ha_ndbcluster.o:ha_ndbcluster.cc
581 + $(CXXCOMPILE) @ndbcluster_includes@ $(LM_CFLAGS) -c $<
582 +@@ -139,44 +135,6 @@ ha_myisam.o:ha_myisam.cc
583 + ha_myisammrg.o:ha_myisammrg.cc
584 + $(CXXCOMPILE) $(LM_CFLAGS) -c $<
585 +
586 +-#
587 +-# To make it easy for the end user to use the embedded library we
588 +-# generate a total libmysqld.a from all library files,
589 +-
590 +-# note - InnoDB libraries have circular dependencies, so in INC_LIB
591 +-# few libraries are present two times. Metrowerks linker doesn't like
592 +-# it at all. Traditional ar has no problems with it, but still there's no
593 +-# need to add the same file twice to the library, so 'sort -u' save us
594 +-# some time and spares unnecessary work.
595 +-
596 +-libmysqld.a: libmysqld_int.a $(INC_LIB) $(libmysqld_a_DEPENDENCIES) $(storageobjects)
597 +-if DARWIN_MWCC
598 +- mwld -lib -o $@ libmysqld_int.a `echo $(INC_LIB) | sort -u` $(storageobjects)
599 +-else
600 +- -rm -f libmysqld.a
601 +- if test "$(host_os)" = "netware" ; \
602 +- then \
603 +- $(libmysqld_a_AR) libmysqld.a $(INC_LIB) libmysqld_int.a $(storageobjects); \
604 +- else \
605 +- current_dir=`pwd`; \
606 +- rm -rf tmp; mkdir tmp; \
607 +- (for arc in $(INC_LIB) ./libmysqld_int.a; do \
608 +- arpath=`echo $$arc|sed 's|[^/]*$$||'|sed 's|\.libs/$$||'`; \
609 +- artmp=`echo $$arc|sed 's|^.*/|tmp/lib-|'`; \
610 +- for F in `$(AR) t $$arc | grep -v SYMDEF`; do \
611 +- if test -e "$$arpath/$$F" ; then echo "$$arpath/$$F"; else \
612 +- mkdir $$artmp; cd $$artmp > /dev/null; \
613 +- $(AR) x ../../$$arc; \
614 +- cd $$current_dir > /dev/null; \
615 +- ls $$artmp/* | grep -v SYMDEF; \
616 +- continue 2; fi; done; \
617 +- done; echo $(libmysqld_a_DEPENDENCIES) ) | sort -u | xargs $(AR) cq libmysqld.a ; \
618 +- $(AR) r libmysqld.a $(storageobjects); \
619 +- $(RANLIB) libmysqld.a ; \
620 +- rm -rf tmp; \
621 +- fi
622 +-endif
623 +-
624 + ## XXX: any time the client interface changes, we'll need to bump
625 + ## the version info for libmysqld; however, it's possible for the
626 + ## libmysqld interface to change without affecting the standard
627 +@@ -187,7 +145,7 @@ endif
628 +
629 + BUILT_SOURCES = link_sources
630 +
631 +-CLEANFILES = $(BUILT_SOURCES)
632 ++CLEANFILES = libmysqld.la
633 +
634 + link_sources:
635 + for f in $(sqlsources); do \
636 +@@ -208,20 +166,6 @@ link_sources:
637 + @LN_CP_F@ $(top_builddir)/libmysql/$$f $$f; \
638 + fi ; \
639 + done; \
640 +- if test -n "$(sqlstoragesources)" ; \
641 +- then \
642 +- for f in "$(sqlstoragesources)"; do \
643 +- rm -f "$$f"; \
644 +- @LN_CP_F@ `find $(srcdir)/../sql -name "$$f"` "$$f"; \
645 +- done; \
646 +- fi; \
647 +- if test -n "$(storagesources)" ; \
648 +- then \
649 +- rm -f $(storagesources); \
650 +- for f in $(storagesourceslinks); do \
651 +- @LN_CP_F@ $(top_srcdir)/$$f . ; \
652 +- done; \
653 +- fi; \
654 + rm -f client_settings.h; \
655 + @LN_CP_F@ $(top_srcdir)/libmysql/client_settings.h \
656 + client_settings.h; \
657 +@@ -229,7 +173,7 @@ link_sources:
658 +
659 +
660 + clean-local:
661 +- rm -f `echo $(sqlsources) $(libmysqlsources) $(sqlstoragesources) $(storagesources) | sed "s;\.lo;.c;g"`; \
662 ++ rm -f `echo $(sqlsources) $(libmysqlsources) | sed "s;\.lo;.c;g"`; \
663 + rm -f client_settings.h
664 +
665 + # Don't update the files from bitkeeper
666 +Index: libmysqld/examples/Makefile.am
667 +===================================================================
668 +--- libmysqld/examples/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
669 ++++ libmysqld/examples/Makefile.am 2010-11-27 15:02:49.000000000 +0100
670 +@@ -37,12 +37,16 @@ INCLUDES = -I$(top_builddir)/include -I$
671 + -I$(top_srcdir) -I$(top_srcdir)/client -I$(top_srcdir)/regex \
672 + $(openssl_includes)
673 + LIBS = @LIBS@ @WRAPLIBS@ @CLIENT_LIBS@ $(yassl_libs)
674 +-LDADD = @CLIENT_EXTRA_LDFLAGS@ ../libmysqld.a @LIBDL@ $(CXXLDFLAGS) \
675 +- @NDB_SCI_LIBS@
676 ++LDADD = @CLIENT_EXTRA_LDFLAGS@ ../libmysqld.la @LIBDL@ $(CXXLDFLAGS) \
677 ++ @NDB_SCI_LIBS@ \
678 ++ $(top_builddir)/mysys/libmysys.la \
679 ++ $(top_builddir)/strings/libmystrings.la \
680 ++ $(top_builddir)/dbug/libdbug.la \
681 ++ $(ZLIB_LIBS)
682 +
683 + mysqltest_embedded_LINK = $(CXXLINK)
684 + nodist_mysqltest_embedded_SOURCES = mysqltest.cc
685 +-mysqltest_embedded_LDADD = $(LDADD) $(top_builddir)/regex/libregex.a \
686 ++mysqltest_embedded_LDADD = $(LDADD) $(top_builddir)/regex/libregex.la \
687 + @MYSQLD_EXTRA_LDFLAGS@
688 +
689 + nodist_mysql_SOURCES = mysql.cc readline.cc completion_hash.cc \
690 +Index: mysys/Makefile.am
691 +===================================================================
692 +--- mysys/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
693 ++++ mysys/Makefile.am 2010-11-27 19:42:49.000000000 +0100
694 +@@ -18,10 +18,10 @@ MYSQLSHAREdir = $(pkgdatadir)
695 + MYSQLBASEdir= $(prefix)
696 + INCLUDES = @ZLIB_INCLUDES@ -I$(top_builddir)/include \
697 + -I$(top_srcdir)/include -I$(srcdir)
698 +-pkglib_LIBRARIES = libmysys.a
699 +-LDADD = libmysys.a $(top_builddir)/strings/libmystrings.a $(top_builddir)/dbug/libdbug.a
700 ++noinst_LTLIBRARIES = libmysys.la
701 ++LDADD = libmysys.la $(top_builddir)/strings/libmystrings.la $(top_builddir)/dbug/libdbug.la
702 + noinst_HEADERS = mysys_priv.h my_static.h my_handler_errors.h
703 +-libmysys_a_SOURCES = my_init.c my_getwd.c mf_getdate.c my_mmap.c \
704 ++libmysys_la_SOURCES = my_init.c my_getwd.c mf_getdate.c my_mmap.c \
705 + mf_path.c mf_loadpath.c my_file.c \
706 + my_open.c my_create.c my_dup.c my_seek.c my_read.c \
707 + my_pread.c my_write.c my_getpagesize.c \
708 +@@ -57,18 +57,18 @@ if NEED_THREAD
709 + # mf_keycache is used only in the server, so it is safe to leave the file
710 + # out of the non-threaded library.
711 + # In fact, it will currently not compile without thread support.
712 +-libmysys_a_SOURCES += mf_keycache.c
713 ++libmysys_la_SOURCES += thr_alarm.c thr_lock.c thr_mutex.c thr_rwlock.c \
714 ++ my_pthread.c my_thr_init.c mf_keycache.c
715 + endif
716 +
717 + EXTRA_DIST = thr_alarm.c thr_lock.c my_pthread.c my_thr_init.c \
718 + thr_mutex.c thr_rwlock.c \
719 + CMakeLists.txt mf_soundex.c \
720 + my_conio.c my_wincond.c my_winthread.c
721 +-libmysys_a_LIBADD = @THREAD_LOBJECTS@
722 +-# test_dir_DEPENDENCIES= $(LIBRARIES)
723 +-# testhash_DEPENDENCIES= $(LIBRARIES)
724 +-# test_charset_DEPENDENCIES= $(LIBRARIES)
725 +-# charset2html_DEPENDENCIES= $(LIBRARIES)
726 ++# test_dir_DEPENDENCIES= $(LTLIBRARIES)
727 ++# testhash_DEPENDENCIES= $(LTLIBRARIES)
728 ++# test_charset_DEPENDENCIES= $(LTLIBRARIES)
729 ++# charset2html_DEPENDENCIES= $(LTLIBRARIES)
730 + DEFS = -DDEFAULT_BASEDIR=\"$(prefix)\" \
731 + -DMYSQL_DATADIR="\"$(MYSQLDATAdir)\"" \
732 + -DDEFAULT_CHARSET_HOME="\"$(MYSQLBASEdir)\"" \
733 +@@ -78,8 +78,6 @@ DEFS = -DDEFAULT_BASEDIR=\"$(prefix)\"
734 + -DDEFAULT_SYSCONFDIR="\"$(sysconfdir)\"" \
735 + @DEFS@
736 +
737 +-libmysys_a_DEPENDENCIES= @THREAD_LOBJECTS@
738 +-
739 + # I hope this always does the right thing. Otherwise this is only test programs
740 + FLAGS=$(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) @NOINST_LDFLAGS@
741 +
742 +@@ -88,47 +86,47 @@ FLAGS=$(DEFS) $(INCLUDES) $(CPPFLAGS) $(
743 + # which automaticly removes the object files you use to compile a final program
744 + #
745 +
746 +-test_bitmap$(EXEEXT): my_bitmap.c $(LIBRARIES)
747 ++test_bitmap$(EXEEXT): my_bitmap.c $(LTLIBRARIES)
748 + $(LINK) $(FLAGS) -DMAIN ./my_bitmap.c $(LDADD) $(LIBS)
749 +
750 +-test_priority_queue$(EXEEXT): queues.c $(LIBRARIES)
751 ++test_priority_queue$(EXEEXT): queues.c $(LTLIBRARIES)
752 + $(LINK) $(FLAGS) -DMAIN ./queues.c $(LDADD) $(LIBS)
753 +
754 +-test_thr_alarm$(EXEEXT): thr_alarm.c $(LIBRARIES)
755 ++test_thr_alarm$(EXEEXT): thr_alarm.c $(LTLIBRARIES)
756 + $(CP) $(srcdir)/thr_alarm.c ./test_thr_alarm.c
757 + $(LINK) $(FLAGS) -DMAIN ./test_thr_alarm.c $(LDADD) $(LIBS)
758 + $(RM) -f ./test_thr_alarm.c
759 +
760 +-test_thr_lock$(EXEEXT): thr_lock.c $(LIBRARIES)
761 ++test_thr_lock$(EXEEXT): thr_lock.c $(LTLIBRARIES)
762 + $(CP) $(srcdir)/thr_lock.c test_thr_lock.c
763 + $(LINK) $(FLAGS) -DMAIN ./test_thr_lock.c $(LDADD) $(LIBS)
764 + $(RM) -f ./test_thr_lock.c
765 +
766 +-test_vsnprintf$(EXEEXT): my_vsnprintf.c $(LIBRARIES)
767 ++test_vsnprintf$(EXEEXT): my_vsnprintf.c $(LTLIBRARIES)
768 + $(CP) $(srcdir)/my_vsnprintf.c test_vsnprintf.c
769 + $(LINK) $(FLAGS) -DMAIN ./test_vsnprintf.c $(LDADD) $(LIBS)
770 + $(RM) -f test_vsnprintf.c
771 +
772 +-test_io_cache$(EXEEXT): mf_iocache.c $(LIBRARIES)
773 ++test_io_cache$(EXEEXT): mf_iocache.c $(LTLIBRARIES)
774 + $(CP) $(srcdir)/mf_iocache.c test_io_cache.c
775 + $(LINK) $(FLAGS) -DMAIN ./test_io_cache.c $(LDADD) $(LIBS)
776 + $(RM) -f test_io_cache.c
777 +
778 +-test_dir$(EXEEXT): test_dir.c $(LIBRARIES)
779 ++test_dir$(EXEEXT): test_dir.c $(LTLIBRARIES)
780 + $(LINK) $(FLAGS) -DMAIN $(srcdir)/test_dir.c $(LDADD) $(LIBS)
781 +
782 +-test_charset$(EXEEXT): test_charset.c $(LIBRARIES)
783 ++test_charset$(EXEEXT): test_charset.c $(LTLIBRARIES)
784 + $(LINK) $(FLAGS) -DMAIN $(srcdir)/test_charset.c $(LDADD) $(LIBS)
785 +
786 +-testhash$(EXEEXT): testhash.c $(LIBRARIES)
787 ++testhash$(EXEEXT): testhash.c $(LTLIBRARIES)
788 + $(LINK) $(FLAGS) -DMAIN $(srcdir)/testhash.c $(LDADD) $(LIBS)
789 +
790 +-test_gethwaddr$(EXEEXT): my_gethwaddr.c $(LIBRARIES)
791 ++test_gethwaddr$(EXEEXT): my_gethwaddr.c $(LTLIBRARIES)
792 + $(CP) $(srcdir)/my_gethwaddr.c ./test_gethwaddr.c
793 + $(LINK) $(FLAGS) -DMAIN ./test_gethwaddr.c $(LDADD) $(LIBS)
794 + $(RM) -f ./test_gethwaddr.c
795 +
796 +-test_base64$(EXEEXT): base64.c $(LIBRARIES)
797 ++test_base64$(EXEEXT): base64.c $(LTLIBRARIES)
798 + $(CP) $(srcdir)/base64.c ./test_base64.c
799 + $(LINK) $(FLAGS) -DMAIN ./test_base64.c $(LDADD) $(LIBS)
800 + $(RM) -f ./test_base64.c
801 +Index: netware/BUILD/compile-linux-tools
802 +===================================================================
803 +--- netware/BUILD/compile-linux-tools.orig 2010-11-27 15:02:45.000000000 +0100
804 ++++ netware/BUILD/compile-linux-tools 2010-11-27 15:02:49.000000000 +0100
805 +@@ -34,14 +34,14 @@ make
806 + # Create mysql_version.h which was deleted my previous step
807 + ./config.status include/mysql_version.h
808 +
809 +-(cd dbug; make libdbug.a)
810 +-(cd strings; make libmystrings.a)
811 +-(cd mysys; make libmysys.a)
812 +-(cd storage/heap; make libheap.a)
813 +-(cd vio; make libvio.a)
814 +-(cd regex; make libregex.a)
815 +-(cd storage/myisam; make libmyisam.a)
816 +-(cd storage/myisammrg; make libmyisammrg.a)
817 ++(cd dbug; make libdbug.la)
818 ++(cd strings; make libmystrings.la)
819 ++(cd mysys; make libmysys.la)
820 ++(cd storage/heap; make libheap.la)
821 ++(cd vio; make libvio.la)
822 ++(cd regex; make libregex.la)
823 ++(cd storage/myisam; make libmyisam.la)
824 ++(cd storage/myisammrg; make libmyisammrg.la)
825 + (cd extra; make comp_err)
826 + (cd libmysql; make conf_to_src)
827 + (cd libmysql_r; make conf_to_src)
828 +Index: netware/Makefile.am
829 +===================================================================
830 +--- netware/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
831 ++++ netware/Makefile.am 2010-11-27 15:02:49.000000000 +0100
832 +@@ -16,8 +16,8 @@
833 +
834 + if HAVE_NETWARE
835 + INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I..
836 +-LDADD = @CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a \
837 +- ../dbug/libdbug.a ../strings/libmystrings.a
838 ++LDADD = @CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.la \
839 ++ ../dbug/libdbug.la ../strings/libmystrings.la
840 + bin_PROGRAMS = mysqld_safe mysql_install_db mysql_test_run libmysql
841 + mysqld_safe_SOURCES= mysqld_safe.c my_manage.c
842 + mysql_install_db_SOURCES= mysql_install_db.c my_manage.c
843 +Index: regex/Makefile.am
844 +===================================================================
845 +--- regex/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
846 ++++ regex/Makefile.am 2010-11-27 15:02:49.000000000 +0100
847 +@@ -16,10 +16,10 @@
848 + # MA 02111-1307, USA
849 +
850 + INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
851 +-noinst_LIBRARIES = libregex.a
852 +-LDADD= libregex.a $(top_builddir)/strings/libmystrings.a
853 ++noinst_LTLIBRARIES = libregex.la
854 ++LDADD= libregex.la $(top_builddir)/strings/libmystrings.la
855 + noinst_HEADERS = cclass.h cname.h regex2.h utils.h engine.c my_regex.h
856 +-libregex_a_SOURCES = regerror.c regcomp.c regexec.c regfree.c reginit.c
857 ++libregex_la_SOURCES = regerror.c regcomp.c regexec.c regfree.c reginit.c
858 + noinst_PROGRAMS = re
859 + re_SOURCES = split.c debug.c main.c
860 + re_LDFLAGS= @NOINST_LDFLAGS@
861 +Index: server-tools/instance-manager/Makefile.am
862 +===================================================================
863 +--- server-tools/instance-manager/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
864 ++++ server-tools/instance-manager/Makefile.am 2010-11-27 15:02:49.000000000 +0100
865 +@@ -87,10 +87,10 @@ mysqlmanager_SOURCES= command.cc command
866 + mysqlmanager_LDADD= @CLIENT_EXTRA_LDFLAGS@ \
867 + liboptions.la \
868 + libnet.a \
869 +- $(top_builddir)/vio/libvio.a \
870 +- $(top_builddir)/mysys/libmysys.a \
871 +- $(top_builddir)/strings/libmystrings.a \
872 +- $(top_builddir)/dbug/libdbug.a \
873 ++ $(top_builddir)/vio/libvio.la \
874 ++ $(top_builddir)/mysys/libmysys.la \
875 ++ $(top_builddir)/strings/libmystrings.la \
876 ++ $(top_builddir)/dbug/libdbug.la \
877 + @openssl_libs@ @yassl_libs@ @ZLIB_LIBS@
878 +
879 + EXTRA_DIST = WindowsService.cpp WindowsService.h IMService.cpp \
880 +Index: sql/Makefile.am
881 +===================================================================
882 +--- sql/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
883 ++++ sql/Makefile.am 2010-11-27 15:02:49.000000000 +0100
884 +@@ -32,13 +32,13 @@ bin_PROGRAMS = mysql_tzinfo_to_sql
885 + noinst_LTLIBRARIES= libndb.la \
886 + udf_example.la
887 +
888 +-SUPPORTING_LIBS = $(top_builddir)/vio/libvio.a \
889 +- $(top_builddir)/mysys/libmysys.a \
890 +- $(top_builddir)/dbug/libdbug.a \
891 +- $(top_builddir)/regex/libregex.a \
892 +- $(top_builddir)/strings/libmystrings.a
893 ++SUPPORTING_LIBS = $(top_builddir)/vio/libvio.la \
894 ++ $(top_builddir)/mysys/libmysys.la \
895 ++ $(top_builddir)/dbug/libdbug.la \
896 ++ $(top_builddir)/regex/libregex.la \
897 ++ $(top_builddir)/strings/libmystrings.la
898 + mysqld_DEPENDENCIES= @mysql_plugin_libs@ $(SUPPORTING_LIBS) libndb.la
899 +-LDADD = $(SUPPORTING_LIBS) @ZLIB_LIBS@ @NDB_SCI_LIBS@
900 ++LDADD = $(SUPPORTING_LIBS) @ZLIB_LIBS@ @NDB_SCI_LIBS@ $(openssl_libs) $(yassl_libs)
901 + mysqld_LDADD = libndb.la \
902 + @MYSQLD_EXTRA_LDFLAGS@ \
903 + @pstack_libs@ \
904 +Index: storage/archive/Makefile.am
905 +===================================================================
906 +--- storage/archive/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
907 ++++ storage/archive/Makefile.am 2010-11-27 15:02:49.000000000 +0100
908 +@@ -33,7 +33,7 @@ DEFS = @DEFS@
909 + noinst_HEADERS = ha_archive.h azlib.h
910 + noinst_PROGRAMS = archive_test archive_reader
911 +
912 +-EXTRA_LTLIBRARIES = ha_archive.la
913 ++EXTRA_LTLIBRARIES = libarchive.la ha_archive.la
914 + pkgplugin_LTLIBRARIES = @plugin_archive_shared_target@
915 + ha_archive_la_LDFLAGS = -module -rpath $(pkgplugindir)
916 + ha_archive_la_CXXFLAGS= $(AM_CXXFLAGS) -DMYSQL_DYNAMIC_PLUGIN
917 +@@ -41,26 +41,25 @@ ha_archive_la_CFLAGS = $(AM_CFLAGS) -DMY
918 + ha_archive_la_SOURCES = ha_archive.cc azio.c
919 +
920 +
921 +-EXTRA_LIBRARIES = libarchive.a
922 +-noinst_LIBRARIES = @plugin_archive_static_target@
923 +-libarchive_a_CXXFLAGS = $(AM_CXXFLAGS)
924 +-libarchive_a_CFLAGS = $(AM_CFLAGS)
925 +-libarchive_a_SOURCES = ha_archive.cc azio.c
926 ++noinst_LTLIBRARIES = @plugin_archive_static_target@
927 ++libarchive_la_CXXFLAGS = $(AM_CXXFLAGS) @plugin_static_if_no_embedded@
928 ++libarchive_la_CFLAGS = $(AM_CFLAGS) @plugin_static_if_no_embedded@
929 ++libarchive_la_SOURCES = ha_archive.cc azio.c
930 +
931 +
932 + archive_test_SOURCES = archive_test.c azio.c
933 + archive_test_CFLAGS = $(AM_CFLAGS)
934 +-archive_test_LDADD = $(top_builddir)/mysys/libmysys.a \
935 +- $(top_builddir)/dbug/libdbug.a \
936 +- $(top_builddir)/strings/libmystrings.a \
937 ++archive_test_LDADD = $(top_builddir)/mysys/libmysys.la \
938 ++ $(top_builddir)/dbug/libdbug.la \
939 ++ $(top_builddir)/strings/libmystrings.la \
940 + @ZLIB_LIBS@
941 + archive_test_LDFLAGS = @NOINST_LDFLAGS@
942 +
943 + archive_reader_SOURCES = archive_reader.c azio.c
944 + archive_reader_CFLAGS = $(AM_CFLAGS)
945 +-archive_reader_LDADD = $(top_builddir)/mysys/libmysys.a \
946 +- $(top_builddir)/dbug/libdbug.a \
947 +- $(top_builddir)/strings/libmystrings.a \
948 ++archive_reader_LDADD = $(top_builddir)/mysys/libmysys.la \
949 ++ $(top_builddir)/dbug/libdbug.la \
950 ++ $(top_builddir)/strings/libmystrings.la \
951 + @ZLIB_LIBS@
952 + archive_reader_LDFLAGS = @NOINST_LDFLAGS@
953 +
954 +Index: storage/archive/plug.in
955 +===================================================================
956 +--- storage/archive/plug.in.orig 2010-11-27 15:02:45.000000000 +0100
957 ++++ storage/archive/plug.in 2010-11-27 15:02:49.000000000 +0100
958 +@@ -1,4 +1,4 @@
959 + MYSQL_STORAGE_ENGINE(archive,, [Archive Storage Engine],
960 + [Archive Storage Engine], [max,max-no-ndb])
961 +-MYSQL_PLUGIN_STATIC(archive, [libarchive.a])
962 ++MYSQL_PLUGIN_STATIC(archive, [libarchive.la])
963 + MYSQL_PLUGIN_DYNAMIC(archive, [ha_archive.la])
964 +Index: storage/blackhole/Makefile.am
965 +===================================================================
966 +--- storage/blackhole/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
967 ++++ storage/blackhole/Makefile.am 2010-11-27 15:02:49.000000000 +0100
968 +@@ -32,7 +32,7 @@ DEFS = @DEFS@
969 +
970 + noinst_HEADERS = ha_blackhole.h
971 +
972 +-EXTRA_LTLIBRARIES = ha_blackhole.la
973 ++EXTRA_LTLIBRARIES = libblackhole.la ha_blackhole.la
974 + pkgplugin_LTLIBRARIES = @plugin_blackhole_shared_target@
975 + ha_blackhole_la_LDFLAGS=-module -rpath $(pkgplugindir)
976 + ha_blackhole_la_CXXFLAGS=$(AM_CXXFLAGS) -DMYSQL_DYNAMIC_PLUGIN
977 +@@ -40,11 +40,10 @@ ha_blackhole_la_CFLAGS= $(AM_CFLAGS) -DM
978 + ha_blackhole_la_SOURCES=ha_blackhole.cc
979 +
980 +
981 +-EXTRA_LIBRARIES = libblackhole.a
982 +-noinst_LIBRARIES = @plugin_blackhole_static_target@
983 +-libblackhole_a_CXXFLAGS=$(AM_CXXFLAGS)
984 +-libblackhole_a_CFLAGS = $(AM_CFLAGS)
985 +-libblackhole_a_SOURCES= ha_blackhole.cc
986 ++noinst_LTLIBRARIES = @plugin_blackhole_static_target@
987 ++libblackhole_la_CXXFLAGS=$(AM_CXXFLAGS) @plugin_static_if_no_embedded@
988 ++libblackhole_la_CFLAGS = $(AM_CFLAGS) @plugin_static_if_no_embedded@
989 ++libblackhole_la_SOURCES= ha_blackhole.cc
990 +
991 +
992 + EXTRA_DIST = CMakeLists.txt plug.in
993 +Index: storage/blackhole/plug.in
994 +===================================================================
995 +--- storage/blackhole/plug.in.orig 2010-11-27 15:02:45.000000000 +0100
996 ++++ storage/blackhole/plug.in 2010-11-27 15:02:49.000000000 +0100
997 +@@ -1,6 +1,6 @@
998 + MYSQL_STORAGE_ENGINE(blackhole,,[Blackhole Storage Engine],
999 + [Basic Write-only Read-never tables], [max,max-no-ndb])
1000 + MYSQL_PLUGIN_DIRECTORY(blackhole, [storage/blackhole])
1001 +-MYSQL_PLUGIN_STATIC(blackhole, [libblackhole.a])
1002 ++MYSQL_PLUGIN_STATIC(blackhole, [libblackhole.la])
1003 + MYSQL_PLUGIN_DYNAMIC(blackhole, [ha_blackhole.la])
1004 +
1005 +Index: storage/csv/Makefile.am
1006 +===================================================================
1007 +--- storage/csv/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1008 ++++ storage/csv/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1009 +@@ -29,16 +29,15 @@ LDADD =
1010 + DEFS = @DEFS@
1011 + noinst_HEADERS = ha_tina.h transparent_file.h
1012 +
1013 +-EXTRA_LTLIBRARIES = ha_csv.la
1014 ++EXTRA_LTLIBRARIES = libcsv.la ha_csv.la
1015 + pkglib_LTLIBRARIES = @plugin_csv_shared_target@
1016 + ha_csv_la_LDFLAGS = -module -rpath $(MYSQLLIBdir)
1017 + ha_csv_la_CXXFLAGS = $(AM_CXXFLAGS) -DMYSQL_PLUGIN
1018 + ha_csv_la_SOURCES = transparent_file.cc ha_tina.cc
1019 +
1020 +-EXTRA_LIBRARIES = libcsv.a
1021 +-noinst_LIBRARIES = @plugin_csv_static_target@
1022 +-libcsv_a_CXXFLAGS = $(AM_CXXFLAGS)
1023 +-libcsv_a_SOURCES = transparent_file.cc ha_tina.cc
1024 ++noinst_LTLIBRARIES = @plugin_csv_static_target@
1025 ++libcsv_la_CXXFLAGS = $(AM_CXXFLAGS) @plugin_static_if_no_embedded@
1026 ++libcsv_la_SOURCES = transparent_file.cc ha_tina.cc
1027 +
1028 + EXTRA_DIST = CMakeLists.txt plug.in
1029 + # Don't update the files from bitkeeper
1030 +Index: storage/csv/plug.in
1031 +===================================================================
1032 +--- storage/csv/plug.in.orig 2010-11-27 15:02:45.000000000 +0100
1033 ++++ storage/csv/plug.in 2010-11-27 15:02:49.000000000 +0100
1034 +@@ -1,5 +1,5 @@
1035 + MYSQL_STORAGE_ENGINE(csv,, [CSV Storage Engine],
1036 + [Stores tables in text CSV format])
1037 + MYSQL_PLUGIN_DIRECTORY(csv, [storage/csv])
1038 +-MYSQL_PLUGIN_STATIC(csv, [libcsv.a])
1039 ++MYSQL_PLUGIN_STATIC(csv, [libcsv.la])
1040 + MYSQL_PLUGIN_MANDATORY(csv) dnl Used for logging
1041 +Index: storage/example/Makefile.am
1042 +===================================================================
1043 +--- storage/example/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1044 ++++ storage/example/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1045 +@@ -32,7 +32,7 @@ DEFS = @DEFS@
1046 +
1047 + noinst_HEADERS = ha_example.h
1048 +
1049 +-EXTRA_LTLIBRARIES = ha_example.la
1050 ++EXTRA_LTLIBRARIES = libexample.la ha_example.la
1051 + pkgplugin_LTLIBRARIES = @plugin_example_shared_target@
1052 + ha_example_la_LDFLAGS = -module -rpath $(pkgplugindir)
1053 + ha_example_la_CXXFLAGS= $(AM_CXXFLAGS) -DMYSQL_DYNAMIC_PLUGIN
1054 +@@ -40,11 +40,10 @@ ha_example_la_CFLAGS = $(AM_CFLAGS) -DMY
1055 + ha_example_la_SOURCES = ha_example.cc
1056 +
1057 +
1058 +-EXTRA_LIBRARIES = libexample.a
1059 +-noinst_LIBRARIES = @plugin_example_static_target@
1060 +-libexample_a_CXXFLAGS = $(AM_CXXFLAGS)
1061 +-libexample_a_CFLAGS = $(AM_CFLAGS)
1062 +-libexample_a_SOURCES= ha_example.cc
1063 ++noinst_LTLIBRARIES = @plugin_example_static_target@
1064 ++libexample_la_CXXFLAGS = $(AM_CXXFLAGS) @plugin_static_if_no_embedded@
1065 ++libexample_la_CFLAGS = $(AM_CFLAGS) @plugin_static_if_no_embedded@
1066 ++libexample_la_SOURCES= ha_example.cc
1067 +
1068 +
1069 + EXTRA_DIST = CMakeLists.txt plug.in
1070 +Index: storage/federated/Makefile.am
1071 +===================================================================
1072 +--- storage/federated/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1073 ++++ storage/federated/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1074 +@@ -32,7 +32,7 @@ DEFS = @DEFS@
1075 +
1076 + noinst_HEADERS = ha_federated.h
1077 +
1078 +-EXTRA_LTLIBRARIES = ha_federated.la
1079 ++EXTRA_LTLIBRARIES = libfederated.la libfederated_embedded.la ha_federated.la
1080 + pkgplugin_LTLIBRARIES = @plugin_federated_shared_target@
1081 + ha_federated_la_LDFLAGS = -module -rpath $(pkgplugindir)
1082 + ha_federated_la_CXXFLAGS= $(AM_CXXFLAGS) -DMYSQL_DYNAMIC_PLUGIN
1083 +@@ -40,11 +40,14 @@ ha_federated_la_CFLAGS = $(AM_CFLAGS) -D
1084 + ha_federated_la_SOURCES = ha_federated.cc $(top_srcdir)/mysys/string.c
1085 +
1086 +
1087 +-EXTRA_LIBRARIES = libfederated.a
1088 +-noinst_LIBRARIES = @plugin_federated_static_target@
1089 +-libfederated_a_CXXFLAGS = $(AM_CXXFLAGS)
1090 +-libfederated_a_CFLAGS = $(AM_CFLAGS)
1091 +-libfederated_a_SOURCES= ha_federated.cc $(top_srcdir)/mysys/string.c
1092 ++noinst_LTLIBRARIES = @plugin_federated_static_target@ @plugin_federated_embedded_static_target@
1093 ++libfederated_la_CXXFLAGS = $(AM_CXXFLAGS) @plugin_static_if_no_embedded@
1094 ++libfederated_la_CFLAGS = $(AM_CFLAGS) @plugin_static_if_no_embedded@
1095 ++libfederated_la_SOURCES= ha_federated.cc $(top_srcdir)/mysys/string.c
1096 ++
1097 ++libfederated_embedded_la_CXXFLAGS = $(AM_CXXFLAGS) @plugin_embedded_defs@
1098 ++libfederated_embedded_la_CFLAGS = $(AM_CFLAGS) @plugin_embedded_defs@
1099 ++libfederated_embedded_la_SOURCES= ha_federated.cc $(top_srcdir)/mysys/string.c
1100 +
1101 +
1102 + EXTRA_DIST = CMakeLists.txt plug.in
1103 +Index: storage/federated/plug.in
1104 +===================================================================
1105 +--- storage/federated/plug.in.orig 2010-11-27 15:02:45.000000000 +0100
1106 ++++ storage/federated/plug.in 2010-11-27 15:02:49.000000000 +0100
1107 +@@ -1,5 +1,4 @@
1108 + MYSQL_STORAGE_ENGINE(federated,,[Federated Storage Engine],
1109 + [Connects to tables on remote MySQL servers], [max,max-no-ndb])
1110 +-MYSQL_PLUGIN_STATIC(federated, [libfederated.a])
1111 ++MYSQL_PLUGIN_STATIC(federated, [libfederated.la], [libfederated_embedded.la])
1112 + MYSQL_PLUGIN_DYNAMIC(federated, [ha_federated.la])
1113 +-MYSQL_PLUGIN_DEPENDS_ON_MYSQL_INTERNALS(federated, [ha_federated.cc])
1114 +Index: storage/heap/Makefile.am
1115 +===================================================================
1116 +--- storage/heap/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1117 ++++ storage/heap/Makefile.am 2010-11-27 19:44:23.000000000 +0100
1118 +@@ -26,27 +26,40 @@ WRAPLIBS=
1119 + LDADD =
1120 +
1121 + DEFS = @DEFS@
1122 +-pkglib_LIBRARIES = libheap.a
1123 ++noinst_LTLIBRARIES = libheap.la libheap_s.la libheap_common.la \
1124 ++ @plugin_heap_embedded_static_target@
1125 ++EXTRA_LTLIBRARIES = libheap_embedded.la
1126 ++
1127 + noinst_PROGRAMS = hp_test1 hp_test2
1128 +-noinst_LIBRARIES = libheap.a
1129 + hp_test1_LDFLAGS = @NOINST_LDFLAGS@
1130 +-hp_test1_LDADD = libheap.a \
1131 +- $(top_builddir)/mysys/libmysys.a \
1132 +- $(top_builddir)/dbug/libdbug.a \
1133 +- $(top_builddir)/strings/libmystrings.a
1134 ++hp_test1_LDADD = libheap.la \
1135 ++ $(top_builddir)/mysys/libmysys.la \
1136 ++ $(top_builddir)/dbug/libdbug.la \
1137 ++ $(top_builddir)/strings/libmystrings.la
1138 + hp_test2_LDFLAGS = @NOINST_LDFLAGS@
1139 +-hp_test2_LDADD = libheap.a \
1140 +- $(top_builddir)/mysys/libmysys.a \
1141 +- $(top_builddir)/dbug/libdbug.a \
1142 +- $(top_builddir)/strings/libmystrings.a
1143 ++hp_test2_LDADD = libheap.la \
1144 ++ $(top_builddir)/mysys/libmysys.la \
1145 ++ $(top_builddir)/dbug/libdbug.la \
1146 ++ $(top_builddir)/strings/libmystrings.la
1147 + noinst_HEADERS = heapdef.h ha_heap.h
1148 +-libheap_a_SOURCES = hp_open.c hp_extra.c hp_close.c hp_panic.c hp_info.c \
1149 ++libheap_common_la_SOURCES = hp_open.c hp_extra.c hp_close.c hp_panic.c hp_info.c \
1150 + hp_rrnd.c hp_scan.c hp_update.c hp_write.c hp_delete.c \
1151 + hp_rsame.c hp_create.c hp_rename.c hp_rfirst.c \
1152 + hp_rnext.c hp_rlast.c hp_rprev.c hp_clear.c \
1153 + hp_rkey.c hp_block.c \
1154 +- ha_heap.cc \
1155 + hp_hash.c _check.c _rectest.c hp_static.c
1156 ++libheap_common_la_CFLAGS = $(AM_LDFLAGS) @plugin_static_if_no_embedded@
1157 ++
1158 ++libheap_s_la_SOURCES = ha_heap.cc
1159 ++libheap_s_la_CFLAGS = $(AM_CFLAGS) @plugin_static_if_no_embedded@
1160 ++libheap_s_la_CXXFLAGS = $(AM_CXXFLAGS) @plugin_static_if_no_embedded@
1161 ++libheap_s_la_LIBADD = libheap_common.la
1162 ++libheap_embedded_la_SOURCES = ha_heap.cc
1163 ++libheap_embedded_la_LIBADD = libheap_common.la
1164 ++libheap_embedded_la_CXXFLAGS = @plugin_embedded_defs@
1165 ++libheap_la_SOURCES =
1166 ++libheap_la_LIBADD = libheap_s.la
1167 ++libheap_la_LDFLAGS = -static
1168 +
1169 +
1170 + EXTRA_DIST = CMakeLists.txt plug.in
1171 +Index: storage/heap/plug.in
1172 +===================================================================
1173 +--- storage/heap/plug.in.orig 2010-11-27 15:02:45.000000000 +0100
1174 ++++ storage/heap/plug.in 2010-11-27 15:02:49.000000000 +0100
1175 +@@ -1,7 +1,6 @@
1176 + MYSQL_STORAGE_ENGINE(heap,no, [Memory Storage Engine],
1177 + [Volatile memory based tables])
1178 + MYSQL_PLUGIN_DIRECTORY(heap, [storage/heap])
1179 +-MYSQL_PLUGIN_STATIC(heap, [libheap.a])
1180 ++MYSQL_PLUGIN_STATIC(heap, [libheap_s.la], [libheap_embedded.la])
1181 + MYSQL_PLUGIN_MANDATORY(heap) dnl Memory tables
1182 +-MYSQL_PLUGIN_DEPENDS_ON_MYSQL_INTERNALS(heap, [ha_heap.cc])
1183 +
1184 +Index: storage/innobase/Makefile.am
1185 +===================================================================
1186 +--- storage/innobase/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1187 ++++ storage/innobase/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1188 +@@ -15,21 +15,20 @@
1189 +
1190 + # Process this file with automake to create Makefile.in
1191 +
1192 +-MYSQLDATAdir= $(localstatedir)
1193 +-MYSQLSHAREdir= $(pkgdatadir)
1194 +-MYSQLBASEdir= $(prefix)
1195 +-MYSQLLIBdir= $(pkglibdir)
1196 +-pkgplugindir= $(pkglibdir)/plugin
1197 +-INCLUDES= -I$(top_srcdir)/include -I$(top_builddir)/include \
1198 ++MYSQLDATAdir = $(localstatedir)
1199 ++MYSQLSHAREdir = $(pkgdatadir)
1200 ++MYSQLBASEdir = $(prefix)
1201 ++MYSQLLIBdir = $(pkglibdir)
1202 ++pkgplugindir = $(pkglibdir)/plugin
1203 ++INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include \
1204 + -I$(top_srcdir)/regex \
1205 + -I$(top_srcdir)/storage/innobase/include \
1206 + -I$(top_srcdir)/sql \
1207 + -I$(srcdir)
1208 +
1209 +-DEFS= @DEFS@
1210 ++DEFS= @DEFS@
1211 +
1212 +-
1213 +-noinst_HEADERS= include/btr0btr.h include/btr0btr.ic \
1214 ++noinst_HEADERS = include/btr0btr.h include/btr0btr.ic \
1215 + include/btr0cur.h include/btr0cur.ic \
1216 + include/btr0pcur.h include/btr0pcur.ic \
1217 + include/btr0sea.h include/btr0sea.ic \
1218 +@@ -122,9 +121,8 @@ noinst_HEADERS= include/btr0btr.h inclu
1219 + include/ut0list.ic include/ut0wqueue.h \
1220 + include/ha_prototypes.h handler/ha_innodb.h
1221 +
1222 +-EXTRA_LIBRARIES= libinnobase.a
1223 +-noinst_LIBRARIES= @plugin_innobase_static_target@
1224 +-libinnobase_a_SOURCES= btr/btr0btr.c btr/btr0cur.c btr/btr0pcur.c \
1225 ++noinst_LTLIBRARIES = @plugin_innobase_static_target@
1226 ++libinnobase_la_SOURCES = btr/btr0btr.c btr/btr0cur.c btr/btr0pcur.c \
1227 + btr/btr0sea.c buf/buf0buf.c buf/buf0flu.c \
1228 + buf/buf0lru.c buf/buf0rea.c data/data0data.c \
1229 + data/data0type.c dict/dict0boot.c \
1230 +@@ -156,18 +154,18 @@ libinnobase_a_SOURCES= btr/btr0btr.c btr
1231 + ut/ut0ut.c ut/ut0vec.c ut/ut0wqueue.c \
1232 + handler/ha_innodb.cc
1233 +
1234 +-libinnobase_a_CXXFLAGS= $(AM_CXXFLAGS)
1235 +-libinnobase_a_CFLAGS= $(AM_CFLAGS)
1236 ++libinnobase_la_CXXFLAGS = $(AM_CXXFLAGS)
1237 ++libinnobase_la_CFLAGS = $(AM_CFLAGS)
1238 +
1239 +-EXTRA_LTLIBRARIES= ha_innodb.la
1240 +-pkgplugin_LTLIBRARIES= @plugin_innobase_shared_target@
1241 ++EXTRA_LTLIBRARIES = libinnobase.la ha_innodb.la
1242 ++pkgplugin_LTLIBRARIES = @plugin_innobase_shared_target@
1243 +
1244 +-ha_innodb_la_LDFLAGS= -module -rpath $(pkgplugindir)
1245 +-ha_innodb_la_CXXFLAGS= $(AM_CXXFLAGS) $(INNODB_DYNAMIC_CFLAGS)
1246 +-ha_innodb_la_CFLAGS= $(AM_CFLAGS) $(INNODB_DYNAMIC_CFLAGS)
1247 +-ha_innodb_la_SOURCES= $(libinnobase_a_SOURCES)
1248 ++ha_innodb_la_LDFLAGS = -module -rpath $(pkgplugindir)
1249 ++ha_innodb_la_CXXFLAGS = $(AM_CXXFLAGS) $(INNODB_DYNAMIC_CFLAGS)
1250 ++ha_innodb_la_CFLAGS = $(AM_CFLAGS) $(INNODB_DYNAMIC_CFLAGS)
1251 ++ha_innodb_la_SOURCES = $(libinnobase_la_SOURCES)
1252 +
1253 +-EXTRA_DIST= CMakeLists.txt plug.in \
1254 ++EXTRA_DIST = CMakeLists.txt plug.in \
1255 + pars/make_bison.sh pars/make_flex.sh \
1256 + pars/pars0grm.y pars/pars0lex.l
1257 +
1258 +Index: storage/innobase/plug.in
1259 +===================================================================
1260 +--- storage/innobase/plug.in.orig 2010-11-27 15:02:45.000000000 +0100
1261 ++++ storage/innobase/plug.in 2010-11-27 15:02:49.000000000 +0100
1262 +@@ -1,7 +1,7 @@
1263 + MYSQL_STORAGE_ENGINE(innobase, innodb, [InnoDB Storage Engine],
1264 + [Transactional Tables using InnoDB], [max,max-no-ndb])
1265 + MYSQL_PLUGIN_DIRECTORY(innobase, [storage/innobase])
1266 +-MYSQL_PLUGIN_STATIC(innobase, [libinnobase.a])
1267 ++MYSQL_PLUGIN_STATIC(innobase, [libinnobase.la])
1268 + MYSQL_PLUGIN_DYNAMIC(innobase, [ha_innodb.la])
1269 + MYSQL_PLUGIN_ACTIONS(innobase, [
1270 + AC_CHECK_LIB(rt, aio_read, [innodb_system_libs="-lrt"])
1271 +Index: storage/innodb_plugin/Makefile.am
1272 +===================================================================
1273 +--- storage/innodb_plugin/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1274 ++++ storage/innodb_plugin/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1275 +@@ -228,9 +228,8 @@ noinst_HEADERS= \
1276 + include/ut0wqueue.h \
1277 + mem/mem0dbg.c
1278 +
1279 +-EXTRA_LIBRARIES= libinnobase.a
1280 +-noinst_LIBRARIES= @plugin_innodb_plugin_static_target@
1281 +-libinnobase_a_SOURCES= \
1282 ++noinst_LTLIBRARIES= @plugin_innodb_plugin_static_target@
1283 ++libinnobase_la_SOURCES= \
1284 + btr/btr0btr.c \
1285 + btr/btr0cur.c \
1286 + btr/btr0pcur.c \
1287 +@@ -325,16 +324,16 @@ libinnobase_a_SOURCES= \
1288 + ut/ut0vec.c \
1289 + ut/ut0wqueue.c
1290 +
1291 +-libinnobase_a_CXXFLAGS= $(AM_CXXFLAGS)
1292 +-libinnobase_a_CFLAGS= $(AM_CFLAGS)
1293 ++libinnobase_la_CXXFLAGS= $(AM_CXXFLAGS) @plugin_static_if_no_embedded@
1294 ++libinnobase_la_CFLAGS= $(AM_CFLAGS) @plugin_static_if_no_embedded@
1295 +
1296 +-EXTRA_LTLIBRARIES= ha_innodb_plugin.la
1297 ++EXTRA_LTLIBRARIES= libinnobase.la ha_innodb_plugin.la
1298 + pkgplugin_LTLIBRARIES= @plugin_innodb_plugin_shared_target@
1299 +
1300 + ha_innodb_plugin_la_LDFLAGS= -module -rpath $(pkgplugindir)
1301 + ha_innodb_plugin_la_CXXFLAGS= $(AM_CXXFLAGS) $(INNODB_DYNAMIC_CFLAGS)
1302 + ha_innodb_plugin_la_CFLAGS= $(AM_CFLAGS) $(INNODB_DYNAMIC_CFLAGS)
1303 +-ha_innodb_plugin_la_SOURCES= $(libinnobase_a_SOURCES)
1304 ++ha_innodb_plugin_la_SOURCES= $(libinnobase_la_SOURCES)
1305 +
1306 + EXTRA_DIST= CMakeLists.txt plug.in \
1307 + pars/make_bison.sh pars/make_flex.sh \
1308 +Index: storage/myisam/Makefile.am
1309 +===================================================================
1310 +--- storage/myisam/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1311 ++++ storage/myisam/Makefile.am 2010-11-27 19:44:01.000000000 +0100
1312 +@@ -30,60 +30,63 @@ DEFS = @DEFS@
1313 + EXTRA_DIST = mi_test_all.sh mi_test_all.res ft_stem.c CMakeLists.txt plug.in
1314 + pkgdata_DATA = mi_test_all mi_test_all.res
1315 +
1316 +-pkglib_LIBRARIES = libmyisam.a
1317 ++noinst_LTLIBRARIES = libmyisam.la libmyisam_common.la libmyisam_s.la \
1318 ++ @plugin_myisam_embedded_static_target@
1319 ++EXTRA_LTLIBRARIES = libmyisam_embedded.la
1320 ++
1321 + bin_PROGRAMS = myisamchk myisamlog myisampack myisam_ftdump
1322 +-myisamchk_DEPENDENCIES= $(LIBRARIES)
1323 +-myisamchk_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
1324 +- $(top_builddir)/mysys/libmysys.a \
1325 +- $(top_builddir)/dbug/libdbug.a \
1326 +- $(top_builddir)/strings/libmystrings.a @ZLIB_LIBS@
1327 +-myisamlog_DEPENDENCIES= $(LIBRARIES)
1328 +-myisamlog_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
1329 +- $(top_builddir)/mysys/libmysys.a \
1330 +- $(top_builddir)/dbug/libdbug.a \
1331 +- $(top_builddir)/strings/libmystrings.a @ZLIB_LIBS@
1332 +-myisampack_DEPENDENCIES=$(LIBRARIES)
1333 +-myisampack_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
1334 +- $(top_builddir)/mysys/libmysys.a \
1335 +- $(top_builddir)/dbug/libdbug.a \
1336 +- $(top_builddir)/strings/libmystrings.a @ZLIB_LIBS@
1337 ++myisamchk_DEPENDENCIES= $(LTLIBRARIES)
1338 ++myisamchk_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.la \
1339 ++ $(top_builddir)/mysys/libmysys.la \
1340 ++ $(top_builddir)/dbug/libdbug.la \
1341 ++ $(top_builddir)/strings/libmystrings.la @ZLIB_LIBS@
1342 ++myisamlog_DEPENDENCIES= $(LTLIBRARIES)
1343 ++myisamlog_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.la \
1344 ++ $(top_builddir)/mysys/libmysys.la \
1345 ++ $(top_builddir)/dbug/libdbug.la \
1346 ++ $(top_builddir)/strings/libmystrings.la @ZLIB_LIBS@
1347 ++myisampack_DEPENDENCIES=$(LTLIBRARIES)
1348 ++myisampack_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.la \
1349 ++ $(top_builddir)/mysys/libmysys.la \
1350 ++ $(top_builddir)/dbug/libdbug.la \
1351 ++ $(top_builddir)/strings/libmystrings.la @ZLIB_LIBS@
1352 + noinst_PROGRAMS = mi_test1 mi_test2 mi_test3 rt_test sp_test #ft_test1 ft_eval
1353 + noinst_HEADERS = myisamdef.h rt_index.h rt_key.h rt_mbr.h sp_defs.h \
1354 + fulltext.h ftdefs.h ft_test1.h ft_eval.h \
1355 + ha_myisam.h
1356 +-mi_test1_DEPENDENCIES= $(LIBRARIES)
1357 +-mi_test1_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
1358 +- $(top_builddir)/mysys/libmysys.a \
1359 +- $(top_builddir)/dbug/libdbug.a \
1360 +- $(top_builddir)/strings/libmystrings.a @ZLIB_LIBS@
1361 +-mi_test2_DEPENDENCIES= $(LIBRARIES)
1362 +-mi_test2_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
1363 +- $(top_builddir)/mysys/libmysys.a \
1364 +- $(top_builddir)/dbug/libdbug.a \
1365 +- $(top_builddir)/strings/libmystrings.a @ZLIB_LIBS@
1366 +-mi_test3_DEPENDENCIES= $(LIBRARIES)
1367 +-mi_test3_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
1368 +- $(top_builddir)/mysys/libmysys.a \
1369 +- $(top_builddir)/dbug/libdbug.a \
1370 +- $(top_builddir)/strings/libmystrings.a @ZLIB_LIBS@
1371 +-#ft_test1_DEPENDENCIES= $(LIBRARIES)
1372 +-#ft_eval_DEPENDENCIES= $(LIBRARIES)
1373 +-myisam_ftdump_DEPENDENCIES= $(LIBRARIES)
1374 +-myisam_ftdump_LDADD = @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
1375 +- $(top_builddir)/mysys/libmysys.a \
1376 +- $(top_builddir)/dbug/libdbug.a \
1377 +- $(top_builddir)/strings/libmystrings.a @ZLIB_LIBS@
1378 +-rt_test_DEPENDENCIES= $(LIBRARIES)
1379 +-rt_test_LDADD = @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
1380 +- $(top_builddir)/mysys/libmysys.a \
1381 +- $(top_builddir)/dbug/libdbug.a \
1382 +- $(top_builddir)/strings/libmystrings.a @ZLIB_LIBS@
1383 +-sp_test_DEPENDENCIES= $(LIBRARIES)
1384 +-sp_test_LDADD = @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
1385 +- $(top_builddir)/mysys/libmysys.a \
1386 +- $(top_builddir)/dbug/libdbug.a \
1387 +- $(top_builddir)/strings/libmystrings.a @ZLIB_LIBS@
1388 +-libmyisam_a_SOURCES = mi_open.c mi_extra.c mi_info.c mi_rkey.c \
1389 ++mi_test1_DEPENDENCIES= $(LTLIBRARIES)
1390 ++mi_test1_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.la \
1391 ++ $(top_builddir)/mysys/libmysys.la \
1392 ++ $(top_builddir)/dbug/libdbug.la \
1393 ++ $(top_builddir)/strings/libmystrings.la @ZLIB_LIBS@
1394 ++mi_test2_DEPENDENCIES= $(LTLIBRARIES)
1395 ++mi_test2_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.la \
1396 ++ $(top_builddir)/mysys/libmysys.la \
1397 ++ $(top_builddir)/dbug/libdbug.la \
1398 ++ $(top_builddir)/strings/libmystrings.la @ZLIB_LIBS@
1399 ++mi_test3_DEPENDENCIES= $(LTLIBRARIES)
1400 ++mi_test3_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.la \
1401 ++ $(top_builddir)/mysys/libmysys.la \
1402 ++ $(top_builddir)/dbug/libdbug.la \
1403 ++ $(top_builddir)/strings/libmystrings.la @ZLIB_LIBS@
1404 ++#ft_test1_DEPENDENCIES= $(LTLIBRARIES)
1405 ++#ft_eval_DEPENDENCIES= $(LTLIBRARIES)
1406 ++myisam_ftdump_DEPENDENCIES= $(LTLIBRARIES)
1407 ++myisam_ftdump_LDADD = @CLIENT_EXTRA_LDFLAGS@ libmyisam.la \
1408 ++ $(top_builddir)/mysys/libmysys.la \
1409 ++ $(top_builddir)/dbug/libdbug.la \
1410 ++ $(top_builddir)/strings/libmystrings.la @ZLIB_LIBS@
1411 ++rt_test_DEPENDENCIES= $(LTLIBRARIES)
1412 ++rt_test_LDADD = @CLIENT_EXTRA_LDFLAGS@ libmyisam.la \
1413 ++ $(top_builddir)/mysys/libmysys.la \
1414 ++ $(top_builddir)/dbug/libdbug.la \
1415 ++ $(top_builddir)/strings/libmystrings.la @ZLIB_LIBS@
1416 ++sp_test_DEPENDENCIES= $(LTLIBRARIES)
1417 ++sp_test_LDADD = @CLIENT_EXTRA_LDFLAGS@ libmyisam.la \
1418 ++ $(top_builddir)/mysys/libmysys.la \
1419 ++ $(top_builddir)/dbug/libdbug.la \
1420 ++ $(top_builddir)/strings/libmystrings.la @ZLIB_LIBS@
1421 ++libmyisam_common_la_SOURCES = mi_open.c mi_extra.c mi_info.c mi_rkey.c \
1422 + mi_rnext.c mi_rnext_same.c \
1423 + mi_search.c mi_page.c mi_key.c mi_locking.c \
1424 + mi_rrnd.c mi_scan.c mi_cache.c \
1425 +@@ -98,8 +101,23 @@ libmyisam_a_SOURCES = mi_open.c mi_extra
1426 + mi_keycache.c mi_preload.c \
1427 + ft_parser.c ft_stopwords.c ft_static.c \
1428 + ft_update.c ft_boolean_search.c ft_nlq_search.c sort.c \
1429 +- ha_myisam.cc \
1430 + rt_index.c rt_key.c rt_mbr.c rt_split.c sp_key.c
1431 ++libmyisam_common_la_CFLAGS = $(AM_CFLAGS) @plugin_static_if_no_embedded@
1432 ++libmyisam_s_la_SOURCES = ha_myisam.cc
1433 ++libmyisam_s_la_CXXFLAGS = $(AM_CXXFLAGS) @plugin_static_if_no_embedded@
1434 ++libmyisam_s_la_LIBADD = libmyisam_common.la
1435 ++libmyisam_embedded_la_SOURCES = ha_myisam.cc
1436 ++libmyisam_embedded_la_LIBADD = libmyisam_common.la
1437 ++libmyisam_embedded_la_CXXFLAGS = $(AM_CXXFLAGS) @plugin_embedded_defs@
1438 ++# libmyisam references symbols inside mysqld.
1439 ++# This means we cannot use it as shared library, as these references causes
1440 ++# undefined symbol errors at load time.
1441 ++# But a static library works (as long as those parts that references
1442 ++# problematic symbols are not linked).
1443 ++libmyisam_la_LDFLAGS = -static
1444 ++libmyisam_la_SOURCES =
1445 ++libmyisam_la_LIBADD = libmyisam_s.la
1446 ++
1447 + CLEANFILES = test?.MY? FT?.MY? isam.log mi_test_all rt_test.MY? sp_test.MY?
1448 +
1449 + # Move to automake rules ?
1450 +Index: storage/myisam/plug.in
1451 +===================================================================
1452 +--- storage/myisam/plug.in.orig 2010-11-27 15:02:45.000000000 +0100
1453 ++++ storage/myisam/plug.in 2010-11-27 15:02:49.000000000 +0100
1454 +@@ -1,7 +1,5 @@
1455 + MYSQL_STORAGE_ENGINE(myisam,no, [MyISAM Storage Engine],
1456 + [Traditional non-transactional MySQL tables])
1457 + MYSQL_PLUGIN_DIRECTORY(myisam, [storage/myisam])
1458 +-MYSQL_PLUGIN_STATIC(myisam, [libmyisam.a])
1459 ++MYSQL_PLUGIN_STATIC(myisam, [libmyisam_s.la], [libmyisam_embedded.la])
1460 + MYSQL_PLUGIN_MANDATORY(myisam) dnl Default
1461 +-MYSQL_PLUGIN_DEPENDS_ON_MYSQL_INTERNALS(myisam, [ha_myisam.cc])
1462 +-
1463 +Index: storage/myisammrg/Makefile.am
1464 +===================================================================
1465 +--- storage/myisammrg/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1466 ++++ storage/myisammrg/Makefile.am 2010-11-27 19:43:39.000000000 +0100
1467 +@@ -26,16 +26,28 @@ WRAPLIBS=
1468 + LDADD =
1469 +
1470 + DEFS = @DEFS@
1471 +-pkglib_LIBRARIES = libmyisammrg.a
1472 ++noinst_LTLIBRARIES = libmyisammrg.la libmyisammrg_s.la libmyisammrg_common.la \
1473 ++ @plugin_myisammrg_embedded_static_target@
1474 ++EXTRA_LTLIBRARIES = libmyisammrg_embedded.la
1475 + noinst_HEADERS = myrg_def.h ha_myisammrg.h
1476 +-noinst_LIBRARIES = libmyisammrg.a
1477 +-libmyisammrg_a_SOURCES = myrg_open.c myrg_extra.c myrg_info.c myrg_locking.c \
1478 ++libmyisammrg_common_la_SOURCES = myrg_open.c myrg_extra.c myrg_info.c myrg_locking.c \
1479 + myrg_rrnd.c myrg_update.c myrg_delete.c myrg_rsame.c \
1480 + myrg_panic.c myrg_close.c myrg_create.c myrg_static.c \
1481 + myrg_rkey.c myrg_rfirst.c myrg_rlast.c myrg_rnext.c \
1482 + myrg_rprev.c myrg_queue.c myrg_write.c myrg_range.c \
1483 +- ha_myisammrg.cc \
1484 + myrg_rnext_same.c myrg_records.c
1485 ++libmyisammrg_common_la_CFLAGS = $(AM_CFLAGS) @plugin_static_if_no_embedded@
1486 ++libmyisammrg_s_la_SOURCES = ha_myisammrg.cc
1487 ++libmyisammrg_s_la_CXXFLAGS = $(AM_CXXFLAGS) @plugin_static_if_no_embedded@
1488 ++libmyisammrg_s_la_LIBADD = libmyisammrg_common.la
1489 ++libmyisammrg_embedded_la_SOURCES = ha_myisammrg.cc
1490 ++libmyisammrg_embedded_la_CFLAGS = $(AM_CFLAGS) @plugin_embedded_defs@
1491 ++libmyisammrg_embedded_la_LIBADD = libmyisammrg_common.la
1492 ++libmyisammrg_embedded_la_CXXFLAGS = $(AM_CXXFLAGS) @plugin_embedded_defs@
1493 ++libmyisammrg_la_SOURCES =
1494 ++libmyisammrg_la_LIBADD = libmyisammrg_s.la
1495 ++libmyisammrg_la_LDFLAGS = -static
1496 ++
1497 +
1498 +
1499 + EXTRA_DIST = CMakeLists.txt plug.in
1500 +Index: storage/myisammrg/plug.in
1501 +===================================================================
1502 +--- storage/myisammrg/plug.in.orig 2010-11-27 15:02:45.000000000 +0100
1503 ++++ storage/myisammrg/plug.in 2010-11-27 15:02:49.000000000 +0100
1504 +@@ -1,6 +1,5 @@
1505 + MYSQL_STORAGE_ENGINE(myisammrg,no,[MyISAM MERGE Engine],
1506 + [Merge multiple MySQL tables into one])
1507 + MYSQL_PLUGIN_DIRECTORY(myisammrg,[storage/myisammrg])
1508 +-MYSQL_PLUGIN_STATIC(myisammrg, [libmyisammrg.a])
1509 ++MYSQL_PLUGIN_STATIC(myisammrg, [libmyisammrg_s.la], [libmyisammrg_embedded.la])
1510 + MYSQL_PLUGIN_MANDATORY(myisammrg)
1511 +-MYSQL_PLUGIN_DEPENDS_ON_MYSQL_INTERNALS(myisammrg, [ha_myisammrg.cc])
1512 +Index: storage/ndb/src/common/util/Makefile.am
1513 +===================================================================
1514 +--- storage/ndb/src/common/util/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1515 ++++ storage/ndb/src/common/util/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1516 +@@ -31,9 +31,9 @@ EXTRA_PROGRAMS = testBitmask
1517 + testBitmask_SOURCES = testBitmask.cpp
1518 + testBitmask_LDFLAGS = @ndb_bin_am_ldflags@ \
1519 + $(top_builddir)/storage/ndb/src/libndbclient.la \
1520 +- $(top_builddir)/dbug/libdbug.a \
1521 +- $(top_builddir)/mysys/libmysys.a \
1522 +- $(top_builddir)/strings/libmystrings.a
1523 ++ $(top_builddir)/dbug/libdbug.la \
1524 ++ $(top_builddir)/mysys/libmysys.la \
1525 ++ $(top_builddir)/strings/libmystrings.la
1526 +
1527 + testBitmask.cpp : Bitmask.cpp
1528 + rm -f testBitmask.cpp
1529 +Index: storage/ndb/config/type_ndbapitest.mk.am
1530 +===================================================================
1531 +--- storage/ndb/config/type_ndbapitest.mk.am.orig 2010-11-27 15:02:45.000000000 +0100
1532 ++++ storage/ndb/config/type_ndbapitest.mk.am 2010-11-27 15:02:49.000000000 +0100
1533 +@@ -13,19 +13,20 @@
1534 + # along with this program; if not, write to the Free Software
1535 + # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1536 +
1537 +-LDADD += $(top_builddir)/storage/ndb/test/src/libNDBT.a \
1538 +- $(top_builddir)/storage/ndb/src/libndbclient.la \
1539 +- $(top_builddir)/dbug/libdbug.a \
1540 +- $(top_builddir)/mysys/libmysys.a \
1541 +- $(top_builddir)/strings/libmystrings.a @NDB_SCI_LIBS@
1542 ++LDADD += $(top_builddir)/storage/ndb/test/src/libNDBT.a \
1543 ++ $(top_builddir)/storage/ndb/src/libndbclient.la \
1544 ++ $(top_builddir)/dbug/libdbug.la \
1545 ++ $(top_builddir)/mysys/libmysys.la \
1546 ++ $(top_builddir)/strings/libmystrings.la @NDB_SCI_LIBS@ \
1547 ++ $(ZLIB_LIBS)
1548 +
1549 +-INCLUDES += -I$(top_srcdir) \
1550 +- -I$(top_builddir)/include \
1551 +- -I$(top_builddir)/storage/ndb/include \
1552 +- -I$(top_srcdir)/include \
1553 +- -I$(top_srcdir)/storage/ndb/include \
1554 +- -I$(top_srcdir)/storage/ndb/include/ndbapi \
1555 +- -I$(top_srcdir)/storage/ndb/include/util \
1556 +- -I$(top_srcdir)/storage/ndb/include/portlib \
1557 +- -I$(top_srcdir)/storage/ndb/test/include \
1558 +- -I$(top_srcdir)/storage/ndb/include/mgmapi
1559 ++INCLUDES += -I$(top_srcdir) \
1560 ++ -I$(top_builddir)/include \
1561 ++ -I$(top_builddir)/storage/ndb/include \
1562 ++ -I$(top_srcdir)/include \
1563 ++ -I$(top_srcdir)/storage/ndb/include \
1564 ++ -I$(top_srcdir)/storage/ndb/include/ndbapi \
1565 ++ -I$(top_srcdir)/storage/ndb/include/util \
1566 ++ -I$(top_srcdir)/storage/ndb/include/portlib \
1567 ++ -I$(top_srcdir)/storage/ndb/test/include \
1568 ++ -I$(top_srcdir)/storage/ndb/include/mgmapi
1569 +Index: storage/ndb/config/type_ndbapitools.mk.am
1570 +===================================================================
1571 +--- storage/ndb/config/type_ndbapitools.mk.am.orig 2010-11-27 15:02:45.000000000 +0100
1572 ++++ storage/ndb/config/type_ndbapitools.mk.am 2010-11-27 15:02:49.000000000 +0100
1573 +@@ -13,20 +13,21 @@
1574 + # along with this program; if not, write to the Free Software
1575 + # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1576 +
1577 +-LDADD += \
1578 +- $(top_builddir)/storage/ndb/src/libndbclient.la \
1579 +- $(top_builddir)/dbug/libdbug.a \
1580 +- $(top_builddir)/mysys/libmysys.a \
1581 +- $(top_builddir)/strings/libmystrings.a @NDB_SCI_LIBS@ @ZLIB_LIBS@
1582 ++LDADD += \
1583 ++ $(top_builddir)/storage/ndb/src/libndbclient.la \
1584 ++ $(top_builddir)/dbug/libdbug.la \
1585 ++ $(top_builddir)/mysys/libmysys.la \
1586 ++ $(top_builddir)/strings/libmystrings.la @NDB_SCI_LIBS@ \
1587 ++ $(ZLIB_LIBS)
1588 +
1589 +-INCLUDES += -I$(srcdir) \
1590 +- -I$(top_builddir)/include \
1591 +- -I$(top_builddir)/storage/ndb/include \
1592 +- -I$(top_srcdir)/include \
1593 +- -I$(top_srcdir)/storage/ndb/include \
1594 +- -I$(top_srcdir)/storage/ndb/include/ndbapi \
1595 +- -I$(top_srcdir)/storage/ndb/include/util \
1596 +- -I$(top_srcdir)/storage/ndb/include/portlib \
1597 +- -I$(top_srcdir)/storage/ndb/test/include \
1598 +- -I$(top_srcdir)/storage/ndb/include/mgmapi \
1599 +- -I$(top_srcdir)/storage/ndb/include/kernel
1600 ++INCLUDES += -I$(srcdir) \
1601 ++ -I$(top_builddir)/include \
1602 ++ -I$(top_builddir)/storage/ndb/include \
1603 ++ -I$(top_srcdir)/include \
1604 ++ -I$(top_srcdir)/storage/ndb/include \
1605 ++ -I$(top_srcdir)/storage/ndb/include/ndbapi \
1606 ++ -I$(top_srcdir)/storage/ndb/include/util \
1607 ++ -I$(top_srcdir)/storage/ndb/include/portlib \
1608 ++ -I$(top_srcdir)/storage/ndb/test/include \
1609 ++ -I$(top_srcdir)/storage/ndb/include/mgmapi \
1610 ++ -I$(top_srcdir)/storage/ndb/include/kernel
1611 +Index: storage/ndb/config/win-libraries
1612 +===================================================================
1613 +--- storage/ndb/config/win-libraries.orig 2010-11-27 15:02:45.000000000 +0100
1614 ++++ storage/ndb/config/win-libraries 2010-11-27 15:02:49.000000000 +0100
1615 +@@ -21,7 +21,7 @@ do
1616 + # the same goes for mysys and strings
1617 + lib=$i
1618 + case $i in
1619 +- *libdbug.a | *libmysys.a | *libmystrings.a)
1620 ++ *libdbug.la | *libmysys.la | *libmystrings.la)
1621 + lib=`echo $i | sed s'!dbug\/lib!!' | sed 's!mysys\/lib!!' | sed 's!strings\/libmy!!'`
1622 + echo "Changing from $i to $lib"
1623 + ;;
1624 +Index: storage/ndb/src/cw/cpcd/Makefile.am
1625 +===================================================================
1626 +--- storage/ndb/src/cw/cpcd/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1627 ++++ storage/ndb/src/cw/cpcd/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1628 +@@ -19,9 +19,9 @@ ndb_cpcd_SOURCES = main.cpp CPCD.cpp Pro
1629 +
1630 + LDADD_LOC = \
1631 + $(top_builddir)/storage/ndb/src/libndbclient.la \
1632 +- $(top_builddir)/dbug/libdbug.a \
1633 +- $(top_builddir)/mysys/libmysys.a \
1634 +- $(top_builddir)/strings/libmystrings.a @NDB_SCI_LIBS@
1635 ++ $(top_builddir)/dbug/libdbug.la \
1636 ++ $(top_builddir)/mysys/libmysys.la \
1637 ++ $(top_builddir)/strings/libmystrings.la @NDB_SCI_LIBS@
1638 +
1639 + include $(top_srcdir)/storage/ndb/config/common.mk.am
1640 + include $(top_srcdir)/storage/ndb/config/type_util.mk.am
1641 +Index: storage/ndb/src/kernel/Makefile.am
1642 +===================================================================
1643 +--- storage/ndb/src/kernel/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1644 ++++ storage/ndb/src/kernel/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1645 +@@ -53,9 +53,10 @@ LDADD += \
1646 + $(top_builddir)/storage/ndb/src/mgmapi/libmgmapi.la \
1647 + $(top_builddir)/storage/ndb/src/common/portlib/libportlib.la \
1648 + $(top_builddir)/storage/ndb/src/common/util/libgeneral.la \
1649 +- $(top_builddir)/dbug/libdbug.a \
1650 +- $(top_builddir)/mysys/libmysys.a \
1651 +- $(top_builddir)/strings/libmystrings.a @NDB_SCI_LIBS@
1652 ++ $(top_builddir)/dbug/libdbug.la \
1653 ++ $(top_builddir)/mysys/libmysys.la \
1654 ++ $(top_builddir)/strings/libmystrings.la @NDB_SCI_LIBS@ \
1655 ++ $(ZLIB_LIBS)
1656 +
1657 + windoze-dsp: ndbd.dsp
1658 +
1659 +Index: storage/ndb/src/kernel/blocks/Makefile.am
1660 +===================================================================
1661 +--- storage/ndb/src/kernel/blocks/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1662 ++++ storage/ndb/src/kernel/blocks/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1663 +@@ -18,7 +18,7 @@ SUBDIRS = \
1664 + dbdih \
1665 + dblqh \
1666 + dbtup \
1667 +- backup
1668 ++ backup
1669 +
1670 + noinst_LIBRARIES = libblocks.a
1671 +
1672 +@@ -56,10 +56,10 @@ libblocks_a_SOURCES = tsman.cpp lgman.cp
1673 + EXTRA_PROGRAMS = ndb_print_file
1674 + ndb_print_file_SOURCES = print_file.cpp diskpage.cpp dbtup/tuppage.cpp
1675 + ndb_print_file_LDFLAGS = @ndb_bin_am_ldflags@ \
1676 +- $(top_builddir)/storage/ndb/src/libndbclient.la \
1677 +- $(top_builddir)/dbug/libdbug.a \
1678 +- $(top_builddir)/mysys/libmysys.a \
1679 +- $(top_builddir)/strings/libmystrings.a
1680 ++ $(top_builddir)/storage/ndb/src/libndbclient.la \
1681 ++ $(top_builddir)/dbug/libdbug.la \
1682 ++ $(top_builddir)/mysys/libmysys.la \
1683 ++ $(top_builddir)/strings/libmystrings.la
1684 +
1685 + include $(top_srcdir)/storage/ndb/config/common.mk.am
1686 + include $(top_srcdir)/storage/ndb/config/type_kernel.mk.am
1687 +Index: storage/ndb/src/kernel/blocks/backup/Makefile.am
1688 +===================================================================
1689 +--- storage/ndb/src/kernel/blocks/backup/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1690 ++++ storage/ndb/src/kernel/blocks/backup/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1691 +@@ -17,9 +17,9 @@ ndbtools_PROGRAMS = ndb_print_backup_fil
1692 + ndb_print_backup_file_SOURCES = read.cpp
1693 + ndb_print_backup_file_LDFLAGS = @ndb_bin_am_ldflags@ \
1694 + $(top_builddir)/storage/ndb/src/libndbclient.la \
1695 +- $(top_builddir)/mysys/libmysys.a \
1696 +- $(top_builddir)/dbug/libdbug.a \
1697 +- $(top_builddir)/strings/libmystrings.a
1698 ++ $(top_builddir)/mysys/libmysys.la \
1699 ++ $(top_builddir)/dbug/libdbug.la \
1700 ++ $(top_builddir)/strings/libmystrings.la
1701 +
1702 + include $(top_srcdir)/storage/ndb/config/common.mk.am
1703 + include $(top_srcdir)/storage/ndb/config/type_kernel.mk.am
1704 +Index: storage/ndb/src/kernel/blocks/dbdict/Makefile.am
1705 +===================================================================
1706 +--- storage/ndb/src/kernel/blocks/dbdict/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1707 ++++ storage/ndb/src/kernel/blocks/dbdict/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1708 +@@ -19,17 +19,17 @@ include $(top_srcdir)/storage/ndb/config
1709 + LDADD += \
1710 + $(top_builddir)/storage/ndb/src/common/util/libgeneral.la \
1711 + $(top_builddir)/storage/ndb/src/common/portlib/libportlib.la \
1712 +- $(top_builddir)/dbug/libdbug.a \
1713 +- $(top_builddir)/mysys/libmysys.a \
1714 +- $(top_builddir)/strings/libmystrings.a
1715 ++ $(top_builddir)/dbug/libdbug.la \
1716 ++ $(top_builddir)/mysys/libmysys.la \
1717 ++ $(top_builddir)/strings/libmystrings.la
1718 +
1719 + ndbtools_PROGRAMS = ndb_print_schema_file
1720 + ndb_print_schema_file_SOURCES = printSchemaFile.cpp
1721 + ndb_print_schema_file_LDFLAGS = @ndb_bin_am_ldflags@ \
1722 + $(top_builddir)/storage/ndb/src/libndbclient.la \
1723 +- $(top_builddir)/dbug/libdbug.a \
1724 +- $(top_builddir)/mysys/libmysys.a \
1725 +- $(top_builddir)/strings/libmystrings.a
1726 ++ $(top_builddir)/dbug/libdbug.la \
1727 ++ $(top_builddir)/mysys/libmysys.la \
1728 ++ $(top_builddir)/strings/libmystrings.la
1729 +
1730 + # Don't update the files from bitkeeper
1731 + %::SCCS/s.%
1732 +Index: storage/ndb/src/kernel/blocks/dbdih/Makefile.am
1733 +===================================================================
1734 +--- storage/ndb/src/kernel/blocks/dbdih/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1735 ++++ storage/ndb/src/kernel/blocks/dbdih/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1736 +@@ -17,9 +17,9 @@ ndbtools_PROGRAMS = ndb_print_sys_file
1737 + ndb_print_sys_file_SOURCES = printSysfile.cpp
1738 + ndb_print_sys_file_LDFLAGS = @ndb_bin_am_ldflags@ \
1739 + $(top_builddir)/storage/ndb/src/libndbclient.la \
1740 +- $(top_builddir)/dbug/libdbug.a \
1741 +- $(top_builddir)/mysys/libmysys.a \
1742 +- $(top_builddir)/strings/libmystrings.a
1743 ++ $(top_builddir)/dbug/libdbug.la \
1744 ++ $(top_builddir)/mysys/libmysys.la \
1745 ++ $(top_builddir)/strings/libmystrings.la
1746 +
1747 +
1748 + include $(top_srcdir)/storage/ndb/config/common.mk.am
1749 +Index: storage/ndb/src/kernel/blocks/dblqh/Makefile.am
1750 +===================================================================
1751 +--- storage/ndb/src/kernel/blocks/dblqh/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1752 ++++ storage/ndb/src/kernel/blocks/dblqh/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1753 +@@ -23,9 +23,9 @@ include $(top_srcdir)/storage/ndb/config
1754 +
1755 + ndbd_redo_log_reader_LDFLAGS = @ndb_bin_am_ldflags@ \
1756 + $(top_builddir)/storage/ndb/src/libndbclient.la \
1757 +- $(top_builddir)/dbug/libdbug.a \
1758 +- $(top_builddir)/mysys/libmysys.a \
1759 +- $(top_builddir)/strings/libmystrings.a
1760 ++ $(top_builddir)/dbug/libdbug.la \
1761 ++ $(top_builddir)/mysys/libmysys.la \
1762 ++ $(top_builddir)/strings/libmystrings.la
1763 +
1764 + # Don't update the files from bitkeeper
1765 + %::SCCS/s.%
1766 +Index: storage/ndb/src/kernel/blocks/dbtup/Makefile.am
1767 +===================================================================
1768 +--- storage/ndb/src/kernel/blocks/dbtup/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1769 ++++ storage/ndb/src/kernel/blocks/dbtup/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1770 +@@ -20,9 +20,9 @@ EXTRA_PROGRAMS = test_varpage
1771 + test_varpage_SOURCES = test_varpage.cpp tuppage.cpp
1772 + test_varpage_LDFLAGS = @ndb_bin_am_ldflags@ \
1773 + $(top_builddir)/storage/ndb/src/libndbclient.la \
1774 +- $(top_builddir)/mysys/libmysys.a \
1775 +- $(top_builddir)/dbug/libdbug.a \
1776 +- $(top_builddir)/strings/libmystrings.a
1777 ++ $(top_builddir)/mysys/libmysys.la \
1778 ++ $(top_builddir)/dbug/libdbug.la \
1779 ++ $(top_builddir)/strings/libmystrings.la
1780 +
1781 + # Don't update the files from bitkeeper
1782 + %::SCCS/s.%
1783 +Index: storage/ndb/src/kernel/vm/Makefile.am
1784 +===================================================================
1785 +--- storage/ndb/src/kernel/vm/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1786 ++++ storage/ndb/src/kernel/vm/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1787 +@@ -21,22 +21,22 @@
1788 + noinst_LIBRARIES = libkernel.a
1789 +
1790 + libkernel_a_SOURCES = \
1791 +- SimulatedBlock.cpp \
1792 +- FastScheduler.cpp \
1793 +- TimeQueue.cpp \
1794 +- VMSignal.cpp \
1795 +- ThreadConfig.cpp \
1796 +- TransporterCallback.cpp \
1797 +- Emulator.cpp \
1798 +- Configuration.cpp \
1799 +- WatchDog.cpp \
1800 +- SimplePropertiesSection.cpp \
1801 +- SectionReader.cpp \
1802 +- Mutex.cpp SafeCounter.cpp \
1803 +- Rope.cpp \
1804 +- ndbd_malloc.cpp ndbd_malloc_impl.cpp \
1805 +- Pool.cpp WOPool.cpp RWPool.cpp \
1806 +- DynArr256.cpp
1807 ++ SimulatedBlock.cpp \
1808 ++ FastScheduler.cpp \
1809 ++ TimeQueue.cpp \
1810 ++ VMSignal.cpp \
1811 ++ ThreadConfig.cpp \
1812 ++ TransporterCallback.cpp \
1813 ++ Emulator.cpp \
1814 ++ Configuration.cpp \
1815 ++ WatchDog.cpp \
1816 ++ SimplePropertiesSection.cpp \
1817 ++ SectionReader.cpp \
1818 ++ Mutex.cpp SafeCounter.cpp \
1819 ++ Rope.cpp \
1820 ++ ndbd_malloc.cpp ndbd_malloc_impl.cpp \
1821 ++ Pool.cpp WOPool.cpp RWPool.cpp \
1822 ++ DynArr256.cpp
1823 +
1824 + INCLUDES_LOC = -I$(top_srcdir)/storage/ndb/src/mgmapi
1825 +
1826 +@@ -49,40 +49,40 @@ include $(top_srcdir)/storage/ndb/config
1827 + windoze-dsp: libkernel.dsp
1828 +
1829 + libkernel.dsp: Makefile \
1830 +- $(top_srcdir)/storage/ndb/config/win-lib.am \
1831 +- $(top_srcdir)/storage/ndb/config/win-name \
1832 +- $(top_srcdir)/storage/ndb/config/win-includes \
1833 +- $(top_srcdir)/storage/ndb/config/win-sources \
1834 +- $(top_srcdir)/storage/ndb/config/win-libraries
1835 +- cat $(top_srcdir)/storage/ndb/config/win-lib.am > $@
1836 +- @$(top_srcdir)/storage/ndb/config/win-name $@ $(noinst_LIBRARIES)
1837 +- @$(top_srcdir)/storage/ndb/config/win-includes $@ $(INCLUDES)
1838 +- @$(top_srcdir)/storage/ndb/config/win-sources $@ $(libkernel_a_SOURCES)
1839 +- @$(top_srcdir)/storage/ndb/config/win-libraries $@ LIB $(LDADD)
1840 ++ $(top_srcdir)/storage/ndb/config/win-lib.am \
1841 ++ $(top_srcdir)/storage/ndb/config/win-name \
1842 ++ $(top_srcdir)/storage/ndb/config/win-includes \
1843 ++ $(top_srcdir)/storage/ndb/config/win-sources \
1844 ++ $(top_srcdir)/storage/ndb/config/win-libraries
1845 ++ cat $(top_srcdir)/storage/ndb/config/win-lib.am > $@
1846 ++ @$(top_srcdir)/storage/ndb/config/win-name $@ $(noinst_LIBRARIES)
1847 ++ @$(top_srcdir)/storage/ndb/config/win-includes $@ $(INCLUDES)
1848 ++ @$(top_srcdir)/storage/ndb/config/win-sources $@ $(libkernel_a_SOURCES)
1849 ++ @$(top_srcdir)/storage/ndb/config/win-libraries $@ LIB $(LDADD)
1850 +
1851 + EXTRA_PROGRAMS = ndbd_malloc_impl_test bench_pool testDynArr256
1852 + ndbd_malloc_impl_test_CXXFLAGS = -DUNIT_TEST
1853 + ndbd_malloc_impl_test_SOURCES = ndbd_malloc_impl.cpp
1854 + ndbd_malloc_impl_test_LDFLAGS = @ndb_bin_am_ldflags@ \
1855 +- $(top_builddir)/storage/ndb/src/libndbclient.la \
1856 +- $(top_builddir)/mysys/libmysys.a \
1857 +- $(top_builddir)/dbug/libdbug.a \
1858 +- $(top_builddir)/strings/libmystrings.a
1859 ++ $(top_builddir)/storage/ndb/src/libndbclient.la \
1860 ++ $(top_builddir)/mysys/libmysys.la \
1861 ++ $(top_builddir)/dbug/libdbug.la \
1862 ++ $(top_builddir)/strings/libmystrings.la
1863 +
1864 + bench_pool_SOURCES = bench_pool.cpp
1865 +-bench_pool_LDFLAGS = @ndb_bin_am_ldflags@\
1866 +- libkernel.a ../error/liberror.a \
1867 +- $(top_builddir)/storage/ndb/src/libndbclient.la \
1868 +- $(top_builddir)/mysys/libmysys.a \
1869 +- $(top_builddir)/dbug/libdbug.a \
1870 +- $(top_builddir)/strings/libmystrings.a
1871 ++bench_pool_LDFLAGS = @ndb_bin_am_ldflags@ \
1872 ++ libkernel.a ../error/liberror.a \
1873 ++ $(top_builddir)/storage/ndb/src/libndbclient.la \
1874 ++ $(top_builddir)/mysys/libmysys.la \
1875 ++ $(top_builddir)/dbug/libdbug.la \
1876 ++ $(top_builddir)/strings/libmystrings.la
1877 +
1878 + testDynArr256_CXXFLAGS = -DUNIT_TEST
1879 + testDynArr256_SOURCES = DynArr256.cpp
1880 + testDynArr256_LDFLAGS = @ndb_bin_am_ldflags@ \
1881 +- libkernel.a ../error/liberror.a \
1882 +- $(top_builddir)/storage/ndb/src/libndbclient.la \
1883 +- $(top_builddir)/mysys/libmysys.a \
1884 +- $(top_builddir)/dbug/libdbug.a \
1885 +- $(top_builddir)/strings/libmystrings.a
1886 ++ libkernel.a ../error/liberror.a \
1887 ++ $(top_builddir)/storage/ndb/src/libndbclient.la \
1888 ++ $(top_builddir)/mysys/libmysys.la \
1889 ++ $(top_builddir)/dbug/libdbug.la \
1890 ++ $(top_builddir)/strings/libmystrings.la
1891 +
1892 +Index: storage/ndb/src/mgmclient/Makefile.am
1893 +===================================================================
1894 +--- storage/ndb/src/mgmclient/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1895 ++++ storage/ndb/src/mgmclient/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1896 +@@ -18,12 +18,11 @@ ndbtools_PROGRAMS = ndb_mgm
1897 +
1898 + libndbmgmclient_la_SOURCES = CommandInterpreter.cpp
1899 + libndbmgmclient_la_LIBADD = ../mgmapi/libmgmapi.la \
1900 +- ../common/logger/liblogger.la \
1901 +- ../common/portlib/libportlib.la \
1902 +- ../common/util/libgeneral.la \
1903 +- ../common/portlib/libportlib.la \
1904 +- ../common/debugger/libtrace.la
1905 +-
1906 ++ ../common/logger/liblogger.la \
1907 ++ ../common/portlib/libportlib.la \
1908 ++ ../common/util/libgeneral.la \
1909 ++ ../common/portlib/libportlib.la \
1910 ++ ../common/debugger/libtrace.la
1911 +
1912 + ndb_mgm_SOURCES = main.cpp
1913 +
1914 +@@ -34,13 +33,13 @@ INCLUDES += -I$(top_srcdir)/storage/ndb/
1915 + -I$(top_srcdir)/storage/ndb/src/common/mgmcommon
1916 +
1917 + LDADD_LOC = $(noinst_LTLIBRARIES) \
1918 +- ../common/portlib/libportlib.la \
1919 +- @readline_link@ \
1920 +- $(top_builddir)/storage/ndb/src/libndbclient.la \
1921 +- $(top_builddir)/dbug/libdbug.a \
1922 +- $(top_builddir)/mysys/libmysys.a \
1923 +- $(top_builddir)/strings/libmystrings.a \
1924 +- @TERMCAP_LIB@ @NDB_SCI_LIBS@
1925 ++ ../common/portlib/libportlib.la \
1926 ++ @readline_link@ \
1927 ++ $(top_builddir)/storage/ndb/src/libndbclient.la \
1928 ++ $(top_builddir)/dbug/libdbug.la \
1929 ++ $(top_builddir)/mysys/libmysys.la \
1930 ++ $(top_builddir)/strings/libmystrings.la \
1931 ++ @TERMCAP_LIB@ @NDB_SCI_LIBS@
1932 +
1933 + ndb_mgm_LDFLAGS = @ndb_bin_am_ldflags@
1934 +
1935 +@@ -50,25 +49,25 @@ ndb_mgm_LDFLAGS = @ndb_bin_am_ldflags@
1936 + windoze-dsp: ndb_mgm.dsp libndbmgmclient.dsp
1937 +
1938 + ndb_mgm.dsp: Makefile \
1939 +- $(top_srcdir)/storage/ndb/config/win-prg.am \
1940 +- $(top_srcdir)/storage/ndb/config/win-name \
1941 +- $(top_srcdir)/storage/ndb/config/win-includes \
1942 +- $(top_srcdir)/storage/ndb/config/win-sources \
1943 +- $(top_srcdir)/storage/ndb/config/win-libraries
1944 +- cat $(top_srcdir)/storage/ndb/config/win-prg.am > $@
1945 +- @$(top_srcdir)/storage/ndb/config/win-name $@ $(ndbtools_PROGRAMS)
1946 +- @$(top_srcdir)/storage/ndb/config/win-includes $@ $(INCLUDES)
1947 +- @$(top_srcdir)/storage/ndb/config/win-sources $@ $(ndb_mgm_SOURCES)
1948 +- @$(top_srcdir)/storage/ndb/config/win-libraries $@ LINK $(LDADD)
1949 ++ $(top_srcdir)/storage/ndb/config/win-prg.am \
1950 ++ $(top_srcdir)/storage/ndb/config/win-name \
1951 ++ $(top_srcdir)/storage/ndb/config/win-includes \
1952 ++ $(top_srcdir)/storage/ndb/config/win-sources \
1953 ++ $(top_srcdir)/storage/ndb/config/win-libraries
1954 ++ cat $(top_srcdir)/storage/ndb/config/win-prg.am > $@
1955 ++ @$(top_srcdir)/storage/ndb/config/win-name $@ $(ndbtools_PROGRAMS)
1956 ++ @$(top_srcdir)/storage/ndb/config/win-includes $@ $(INCLUDES)
1957 ++ @$(top_srcdir)/storage/ndb/config/win-sources $@ $(ndb_mgm_SOURCES)
1958 ++ @$(top_srcdir)/storage/ndb/config/win-libraries $@ LINK $(LDADD)
1959 +
1960 + libndbmgmclient.dsp: Makefile \
1961 +- $(top_srcdir)/storage/ndb/config/win-lib.am \
1962 +- $(top_srcdir)/storage/ndb/config/win-name \
1963 +- $(top_srcdir)/storage/ndb/config/win-includes \
1964 +- $(top_srcdir)/storage/ndb/config/win-sources \
1965 +- $(top_srcdir)/storage/ndb/config/win-libraries
1966 +- cat $(top_srcdir)/storage/ndb/config/win-lib.am > $@
1967 +- @$(top_srcdir)/storage/ndb/config/win-name $@ $(noinst_LTLIBRARIES)
1968 +- @$(top_srcdir)/storage/ndb/config/win-includes $@ $(INCLUDES)
1969 +- @$(top_srcdir)/storage/ndb/config/win-sources $@ $(libndbmgmclient_la_SOURCES)
1970 +- @$(top_srcdir)/storage/ndb/config/win-libraries $@ LIB
1971 ++ $(top_srcdir)/storage/ndb/config/win-lib.am \
1972 ++ $(top_srcdir)/storage/ndb/config/win-name \
1973 ++ $(top_srcdir)/storage/ndb/config/win-includes \
1974 ++ $(top_srcdir)/storage/ndb/config/win-sources \
1975 ++ $(top_srcdir)/storage/ndb/config/win-libraries
1976 ++ cat $(top_srcdir)/storage/ndb/config/win-lib.am > $@
1977 ++ @$(top_srcdir)/storage/ndb/config/win-name $@ $(noinst_LTLIBRARIES)
1978 ++ @$(top_srcdir)/storage/ndb/config/win-includes $@ $(INCLUDES)
1979 ++ @$(top_srcdir)/storage/ndb/config/win-sources $@ $(libndbmgmclient_la_SOURCES)
1980 ++ @$(top_srcdir)/storage/ndb/config/win-libraries $@ LIB
1981 +Index: storage/ndb/src/mgmsrv/Makefile.am
1982 +===================================================================
1983 +--- storage/ndb/src/mgmsrv/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
1984 ++++ storage/ndb/src/mgmsrv/Makefile.am 2010-11-27 15:02:49.000000000 +0100
1985 +@@ -22,35 +22,35 @@ MYSQLCLUSTERdir= .
1986 + ndbbin_PROGRAMS = ndb_mgmd
1987 +
1988 + ndb_mgmd_SOURCES = \
1989 +- MgmtSrvr.cpp \
1990 +- MgmtSrvrGeneralSignalHandling.cpp \
1991 +- main.cpp \
1992 +- Services.cpp \
1993 +- convertStrToInt.cpp \
1994 +- SignalQueue.cpp \
1995 +- MgmtSrvrConfig.cpp \
1996 +- ConfigInfo.cpp \
1997 +- InitConfigFileParser.cpp \
1998 +- Config.cpp
1999 ++ MgmtSrvr.cpp \
2000 ++ MgmtSrvrGeneralSignalHandling.cpp \
2001 ++ main.cpp \
2002 ++ Services.cpp \
2003 ++ convertStrToInt.cpp \
2004 ++ SignalQueue.cpp \
2005 ++ MgmtSrvrConfig.cpp \
2006 ++ ConfigInfo.cpp \
2007 ++ InitConfigFileParser.cpp \
2008 ++ Config.cpp
2009 +
2010 + INCLUDES_LOC = -I$(top_srcdir)/storage/ndb/src/ndbapi \
2011 +- -I$(top_srcdir)/storage/ndb/src/mgmapi \
2012 +- -I$(top_srcdir)/storage/ndb/src/common/mgmcommon \
2013 +- -I$(top_srcdir)/storage/ndb/src/mgmclient
2014 ++ -I$(top_srcdir)/storage/ndb/src/mgmapi \
2015 ++ -I$(top_srcdir)/storage/ndb/src/common/mgmcommon \
2016 ++ -I$(top_srcdir)/storage/ndb/src/mgmclient
2017 +
2018 + LDADD_LOC = $(top_builddir)/storage/ndb/src/mgmclient/CommandInterpreter.lo \
2019 +- $(top_builddir)/storage/ndb/src/libndbclient.la \
2020 +- $(top_builddir)/dbug/libdbug.a \
2021 +- $(top_builddir)/mysys/libmysys.a \
2022 +- $(top_builddir)/strings/libmystrings.a \
2023 +- @readline_link@ \
2024 +- @NDB_SCI_LIBS@ \
2025 +- @TERMCAP_LIB@
2026 +-
2027 +-DEFS_LOC = -DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
2028 +- -DMYSQL_DATADIR="\"$(MYSQLDATAdir)\"" \
2029 +- -DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
2030 +- -DMYSQLCLUSTERDIR="\"$(MYSQLCLUSTERdir)\""
2031 ++ $(top_builddir)/storage/ndb/src/libndbclient.la \
2032 ++ $(top_builddir)/dbug/libdbug.la \
2033 ++ $(top_builddir)/mysys/libmysys.la \
2034 ++ $(top_builddir)/strings/libmystrings.la \
2035 ++ @readline_link@ \
2036 ++ @NDB_SCI_LIBS@ \
2037 ++ @TERMCAP_LIB@
2038 ++
2039 ++DEFS_LOC = -DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
2040 ++ -DMYSQL_DATADIR="\"$(MYSQLDATAdir)\"" \
2041 ++ -DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
2042 ++ -DMYSQLCLUSTERDIR="\"$(MYSQLCLUSTERdir)\""
2043 +
2044 + include $(top_srcdir)/storage/ndb/config/common.mk.am
2045 + include $(top_srcdir)/storage/ndb/config/type_ndbapi.mk.am
2046 +@@ -63,13 +63,13 @@ ndb_mgmd_LDFLAGS = @ndb_bin_am_ldflags@
2047 + windoze-dsp: ndb_mgmd.dsp
2048 +
2049 + ndb_mgmd.dsp: Makefile \
2050 +- $(top_srcdir)/storage/ndb/config/win-prg.am \
2051 +- $(top_srcdir)/storage/ndb/config/win-name \
2052 +- $(top_srcdir)/storage/ndb/config/win-includes \
2053 +- $(top_srcdir)/storage/ndb/config/win-sources \
2054 +- $(top_srcdir)/storage/ndb/config/win-libraries
2055 +- cat $(top_srcdir)/storage/ndb/config/win-prg.am > $@
2056 +- @$(top_srcdir)/storage/ndb/config/win-name $@ $(ndbbin_PROGRAMS)
2057 +- @$(top_srcdir)/storage/ndb/config/win-includes $@ $(INCLUDES)
2058 +- @$(top_srcdir)/storage/ndb/config/win-sources $@ $(ndb_mgmd_SOURCES)
2059 +- @$(top_srcdir)/storage/ndb/config/win-libraries $@ LINK $(LDADD)
2060 ++ $(top_srcdir)/storage/ndb/config/win-prg.am \
2061 ++ $(top_srcdir)/storage/ndb/config/win-name \
2062 ++ $(top_srcdir)/storage/ndb/config/win-includes \
2063 ++ $(top_srcdir)/storage/ndb/config/win-sources \
2064 ++ $(top_srcdir)/storage/ndb/config/win-libraries
2065 ++ cat $(top_srcdir)/storage/ndb/config/win-prg.am > $@
2066 ++ @$(top_srcdir)/storage/ndb/config/win-name $@ $(ndbbin_PROGRAMS)
2067 ++ @$(top_srcdir)/storage/ndb/config/win-includes $@ $(INCLUDES)
2068 ++ @$(top_srcdir)/storage/ndb/config/win-sources $@ $(ndb_mgmd_SOURCES)
2069 ++ @$(top_srcdir)/storage/ndb/config/win-libraries $@ LINK $(LDADD)
2070 +Index: storage/ndb/src/ndbapi/Makefile.am
2071 +===================================================================
2072 +--- storage/ndb/src/ndbapi/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
2073 ++++ storage/ndb/src/ndbapi/Makefile.am 2010-11-27 15:02:49.000000000 +0100
2074 +@@ -22,41 +22,42 @@ ndberror_check_SOURCES = ndberror_check.
2075 + noinst_LTLIBRARIES = libndbapi.la
2076 +
2077 + libndbapi_la_SOURCES = \
2078 +- TransporterFacade.cpp \
2079 +- ClusterMgr.cpp \
2080 +- Ndb.cpp \
2081 +- NdbPoolImpl.cpp \
2082 +- NdbPool.cpp \
2083 +- Ndblist.cpp \
2084 +- Ndbif.cpp \
2085 +- Ndbinit.cpp \
2086 +- Ndberr.cpp \
2087 +- ndberror.c \
2088 +- NdbErrorOut.cpp \
2089 +- NdbTransaction.cpp \
2090 +- NdbTransactionScan.cpp \
2091 +- NdbOperation.cpp \
2092 +- NdbOperationSearch.cpp \
2093 +- NdbOperationScan.cpp \
2094 +- NdbOperationInt.cpp \
2095 +- NdbOperationDefine.cpp \
2096 +- NdbOperationExec.cpp \
2097 +- NdbScanOperation.cpp NdbScanFilter.cpp \
2098 +- NdbIndexOperation.cpp \
2099 +- NdbEventOperation.cpp \
2100 +- NdbEventOperationImpl.cpp \
2101 +- NdbApiSignal.cpp \
2102 +- NdbRecAttr.cpp \
2103 +- NdbUtil.cpp \
2104 +- NdbReceiver.cpp \
2105 +- NdbDictionary.cpp \
2106 +- NdbDictionaryImpl.cpp \
2107 +- DictCache.cpp \
2108 +- ndb_cluster_connection.cpp \
2109 +- NdbBlob.cpp \
2110 +- NdbIndexStat.cpp \
2111 +- SignalSender.cpp \
2112 +- ObjectMap.cpp
2113 ++ TransporterFacade.cpp \
2114 ++ ClusterMgr.cpp \
2115 ++ Ndb.cpp \
2116 ++ NdbPoolImpl.cpp \
2117 ++ NdbPool.cpp \
2118 ++ Ndblist.cpp \
2119 ++ Ndbif.cpp \
2120 ++ Ndbinit.cpp \
2121 ++ Ndberr.cpp \
2122 ++ ndberror.c \
2123 ++ NdbErrorOut.cpp \
2124 ++ NdbTransaction.cpp \
2125 ++ NdbTransactionScan.cpp \
2126 ++ NdbOperation.cpp \
2127 ++ NdbOperationSearch.cpp \
2128 ++ NdbOperationScan.cpp \
2129 ++ NdbOperationInt.cpp \
2130 ++ NdbOperationDefine.cpp \
2131 ++ NdbOperationExec.cpp \
2132 ++ NdbScanOperation.cpp \
2133 ++ NdbScanFilter.cpp \
2134 ++ NdbIndexOperation.cpp \
2135 ++ NdbEventOperation.cpp \
2136 ++ NdbEventOperationImpl.cpp \
2137 ++ NdbApiSignal.cpp \
2138 ++ NdbRecAttr.cpp \
2139 ++ NdbUtil.cpp \
2140 ++ NdbReceiver.cpp \
2141 ++ NdbDictionary.cpp \
2142 ++ NdbDictionaryImpl.cpp \
2143 ++ DictCache.cpp \
2144 ++ ndb_cluster_connection.cpp \
2145 ++ NdbBlob.cpp \
2146 ++ NdbIndexStat.cpp \
2147 ++ SignalSender.cpp \
2148 ++ ObjectMap.cpp
2149 +
2150 + INCLUDES_LOC = -I$(top_srcdir)/storage/ndb/src/mgmapi
2151 +
2152 +@@ -67,9 +68,10 @@ include $(top_srcdir)/storage/ndb/config
2153 + include $(top_srcdir)/storage/ndb/config/type_ndbapi.mk.am
2154 +
2155 + ndberror_check_LDFLAGS = \
2156 +- $(top_builddir)/dbug/libdbug.a \
2157 +- $(top_builddir)/mysys/libmysys.a \
2158 +- $(top_builddir)/strings/libmystrings.a
2159 ++ $(top_builddir)/dbug/libdbug.la \
2160 ++ $(top_builddir)/mysys/libmysys.la \
2161 ++ $(top_builddir)/strings/libmystrings.la \
2162 ++ $(ZLIB_LIBS)
2163 +
2164 + # Don't update the files from bitkeeper
2165 + %::SCCS/s.%
2166 +@@ -77,13 +79,13 @@ ndberror_check_LDFLAGS = \
2167 + windoze-dsp: libndbapi.dsp
2168 +
2169 + libndbapi.dsp: Makefile \
2170 +- $(top_srcdir)/storage/ndb/config/win-lib.am \
2171 +- $(top_srcdir)/storage/ndb/config/win-name \
2172 +- $(top_srcdir)/storage/ndb/config/win-includes \
2173 +- $(top_srcdir)/storage/ndb/config/win-sources \
2174 +- $(top_srcdir)/storage/ndb/config/win-libraries
2175 +- cat $(top_srcdir)/storage/ndb/config/win-lib.am > $@
2176 +- @$(top_srcdir)/storage/ndb/config/win-name $@ $(noinst_LTLIBRARIES)
2177 +- @$(top_srcdir)/storage/ndb/config/win-includes $@ $(INCLUDES)
2178 +- @$(top_srcdir)/storage/ndb/config/win-sources $@ $(libndbapi_la_SOURCES)
2179 +- @$(top_srcdir)/storage/ndb/config/win-libraries $@ LIB $(LDADD)
2180 ++ $(top_srcdir)/storage/ndb/config/win-lib.am \
2181 ++ $(top_srcdir)/storage/ndb/config/win-name \
2182 ++ $(top_srcdir)/storage/ndb/config/win-includes \
2183 ++ $(top_srcdir)/storage/ndb/config/win-sources \
2184 ++ $(top_srcdir)/storage/ndb/config/win-libraries
2185 ++ cat $(top_srcdir)/storage/ndb/config/win-lib.am > $@
2186 ++ @$(top_srcdir)/storage/ndb/config/win-name $@ $(noinst_LTLIBRARIES)
2187 ++ @$(top_srcdir)/storage/ndb/config/win-includes $@ $(INCLUDES)
2188 ++ @$(top_srcdir)/storage/ndb/config/win-sources $@ $(libndbapi_la_SOURCES)
2189 ++ @$(top_srcdir)/storage/ndb/config/win-libraries $@ LIB $(LDADD)
2190 +Index: storage/ndb/test/run-test/Makefile.am
2191 +===================================================================
2192 +--- storage/ndb/test/run-test/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
2193 ++++ storage/ndb/test/run-test/Makefile.am 2010-11-27 15:02:49.000000000 +0100
2194 +@@ -34,9 +34,9 @@ atrt_SOURCES = main.cpp setup.cpp files.
2195 + INCLUDES_LOC = -I$(top_srcdir)/storage/ndb/test/include
2196 + LDADD_LOC = $(top_builddir)/storage/ndb/test/src/libNDBT.a \
2197 + $(top_builddir)/storage/ndb/src/libndbclient.la \
2198 +- $(top_builddir)/dbug/libdbug.a \
2199 +- $(top_builddir)/mysys/libmysys.a \
2200 +- $(top_builddir)/strings/libmystrings.a @NDB_SCI_LIBS@
2201 ++ $(top_builddir)/dbug/libdbug.la \
2202 ++ $(top_builddir)/mysys/libmysys.la \
2203 ++ $(top_builddir)/strings/libmystrings.la @NDB_SCI_LIBS@
2204 +
2205 + atrt_CXXFLAGS = -I$(top_srcdir)/ndb/src/mgmapi \
2206 + -I$(top_srcdir)/ndb/src/mgmsrv \
2207 +Index: strings/Makefile.am
2208 +===================================================================
2209 +--- strings/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
2210 ++++ strings/Makefile.am 2010-11-27 19:42:38.000000000 +0100
2211 +@@ -16,7 +16,7 @@
2212 + # This file is public domain and comes with NO WARRANTY of any kind
2213 +
2214 + INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
2215 +-pkglib_LIBRARIES = libmystrings.a
2216 ++noinst_LTLIBRARIES = libmystrings.la
2217 +
2218 + # Exact one of ASSEMBLER_X
2219 + if ASSEMBLER_x86
2220 +@@ -37,7 +37,7 @@ CSRCS = strxmov.c bmove_upp.c strappend
2221 + endif
2222 + endif
2223 +
2224 +-libmystrings_a_SOURCES = $(ASRCS) $(CSRCS)
2225 ++libmystrings_la_SOURCES = $(ASRCS) $(CSRCS)
2226 + noinst_PROGRAMS = conf_to_src
2227 + CLEANFILES = str_test uctypedump test_decimal
2228 + # Default charset definitions
2229 +@@ -56,9 +56,9 @@ EXTRA_DIST = ctype-big5.c ctype-cp932.c
2230 + t_ctype.h my_strchr.c CMakeLists.txt \
2231 + CHARSET_INFO.txt
2232 +
2233 +-libmystrings_a_LIBADD=
2234 +-conf_to_src_SOURCES = conf_to_src.c xml.c ctype.c
2235 +-conf_to_src_LDADD=
2236 ++libmystrings_la_LIBADD=
2237 ++conf_to_src_SOURCES = conf_to_src.c
2238 ++conf_to_src_LDADD = libmystrings.la
2239 + #force static linking of conf_to_src - essential when linking against
2240 + #custom installation of libc
2241 + conf_to_src_LDFLAGS= @NOINST_LDFLAGS@
2242 +@@ -69,15 +69,15 @@ conf_to_src_LDFLAGS= @NOINST_LDFLAGS@
2243 +
2244 + FLAGS=$(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) @NOINST_LDFLAGS@
2245 +
2246 +-str_test: str_test.c $(pkglib_LIBRARIES)
2247 +- $(LINK) $(FLAGS) -DMAIN $(INCLUDES) $(srcdir)/str_test.c $(LDADD) $(pkglib_LIBRARIES)
2248 ++str_test: str_test.c $(pkglib_LTLIBRARIES)
2249 ++ $(LINK) $(FLAGS) -DMAIN $(INCLUDES) $(srcdir)/str_test.c $(LDADD) $(pkglib_LTLIBRARIES)
2250 +
2251 + uctypedump: uctypedump.c
2252 + $(LINK) $(INCLUDES) $(srcdir)/uctypedump.c
2253 +
2254 + test_decimal$(EXEEXT): decimal.c $(pkglib_LIBRARIES)
2255 + $(CP) $(srcdir)/decimal.c ./test_decimal.c
2256 +- $(LINK) $(FLAGS) -DMAIN ./test_decimal.c $(LDADD) $(pkglib_LIBRARIES)
2257 ++ $(LINK) $(FLAGS) -DMAIN ./test_decimal.c $(LDADD) $(pkglib_LTLIBRARIES)
2258 + $(RM) -f ./test_decimal.c
2259 +
2260 + # Don't update the files from bitkeeper
2261 +Index: unittest/unit.pl
2262 +===================================================================
2263 +--- unittest/unit.pl.orig 2010-11-27 15:02:45.000000000 +0100
2264 ++++ unittest/unit.pl 2010-11-27 15:02:49.000000000 +0100
2265 +@@ -55,7 +55,7 @@ sub _find_test_files (@) {
2266 + my @dirs = @_;
2267 + my @files;
2268 + find sub {
2269 +- $File::Find::prune = 1 if /^SCCS$/;
2270 ++ $File::Find::prune = 1 if /^(SCCS|\.libs)$/;
2271 + push(@files, $File::Find::name) if -x _ && /-t\z/;
2272 + }, @dirs;
2273 + return @files;
2274 +Index: unittest/mysys/Makefile.am
2275 +===================================================================
2276 +--- unittest/mysys/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
2277 ++++ unittest/mysys/Makefile.am 2010-11-27 15:02:49.000000000 +0100
2278 +@@ -13,15 +13,16 @@
2279 + # along with this program; if not, write to the Free Software
2280 + # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2281 +
2282 +-AM_CPPFLAGS = @ZLIB_INCLUDES@ -I$(top_builddir)/include
2283 +-AM_CPPFLAGS += -I$(top_srcdir)/include -I$(top_srcdir)/unittest/mytap
2284 ++AM_CPPFLAGS = @ZLIB_INCLUDES@ -I$(top_builddir)/include
2285 ++AM_CPPFLAGS += -I$(top_srcdir)/include -I$(top_srcdir)/unittest/mytap
2286 +
2287 +-LDADD = $(top_builddir)/unittest/mytap/libmytap.a \
2288 +- $(top_builddir)/mysys/libmysys.a \
2289 +- $(top_builddir)/dbug/libdbug.a \
2290 +- $(top_builddir)/strings/libmystrings.a
2291 ++LDADD = $(top_builddir)/unittest/mytap/libmytap.a \
2292 ++ $(top_builddir)/mysys/libmysys.la \
2293 ++ $(top_builddir)/dbug/libdbug.la \
2294 ++ $(top_builddir)/strings/libmystrings.la \
2295 ++ $(ZLIB_LIBS)
2296 +
2297 +-noinst_PROGRAMS = bitmap-t base64-t
2298 ++noinst_PROGRAMS = bitmap-t base64-t
2299 +
2300 + # Don't update the files from bitkeeper
2301 + %::SCCS/s.%
2302 +Index: unittest/strings/Makefile.am
2303 +===================================================================
2304 +--- unittest/strings/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
2305 ++++ unittest/strings/Makefile.am 2010-11-27 15:02:49.000000000 +0100
2306 +@@ -16,10 +16,11 @@
2307 + AM_CPPFLAGS = @ZLIB_INCLUDES@ -I$(top_builddir)/include
2308 + AM_CPPFLAGS += -I$(top_srcdir)/include -I$(top_srcdir)/unittest/mytap
2309 +
2310 +-LDADD = $(top_builddir)/unittest/mytap/libmytap.a \
2311 +- $(top_builddir)/mysys/libmysys.a \
2312 +- $(top_builddir)/dbug/libdbug.a \
2313 +- $(top_builddir)/strings/libmystrings.a
2314 ++LDADD = $(top_builddir)/unittest/mytap/libmytap.a \
2315 ++ $(top_builddir)/mysys/libmysys.la \
2316 ++ $(top_builddir)/dbug/libdbug.la \
2317 ++ $(top_builddir)/strings/libmystrings.la \
2318 ++ $(ZLIB_LIBS)
2319 +
2320 + noinst_PROGRAMS = strings-t
2321 +
2322 +Index: vio/Makefile.am
2323 +===================================================================
2324 +--- vio/Makefile.am.orig 2010-11-27 15:02:45.000000000 +0100
2325 ++++ vio/Makefile.am 2010-11-27 19:43:02.000000000 +0100
2326 +@@ -16,11 +16,11 @@
2327 + INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include \
2328 + $(openssl_includes)
2329 + LDADD = @CLIENT_EXTRA_LDFLAGS@ $(openssl_libs) $(yassl_libs)
2330 +-pkglib_LIBRARIES = libvio.a
2331 ++noinst_LTLIBRARIES = libvio.la
2332 +
2333 + noinst_HEADERS = vio_priv.h
2334 +
2335 +-libvio_a_SOURCES = vio.c viosocket.c viossl.c viosslfactories.c
2336 ++libvio_la_SOURCES = vio.c viosocket.c viossl.c viosslfactories.c
2337 +
2338 + EXTRA_DIST= CMakeLists.txt
2339 +