summaryrefslogtreecommitdiff
path: root/storage/example
diff options
context:
space:
mode:
authorunknown <acurtis@xiphis.org>2006-03-28 14:34:28 -0800
committerunknown <acurtis@xiphis.org>2006-03-28 14:34:28 -0800
commitfded4bdf77cc445c2f9447ee924dfb2cda5cffad (patch)
treeec2280d949748920b1acd919abfa5c3a74455aaa /storage/example
parenta242edb454f94fc567d52506873f568cfc0c100f (diff)
downloadmariadb-git-fded4bdf77cc445c2f9447ee924dfb2cda5cffad.tar.gz
Bug#18464
"Can't make example storage engine available" Build was attempting a shared-lib build instead of static configure.in: configure example to be linked in storage/csv/ha_tina.cc: don't want plugin symbols in mysqld storage/example/Makefile.am: build as static library storage/example/ha_example.cc: don't want plugin symbols in mysqld
Diffstat (limited to 'storage/example')
-rw-r--r--storage/example/Makefile.am5
-rw-r--r--storage/example/ha_example.cc3
2 files changed, 4 insertions, 4 deletions
diff --git a/storage/example/Makefile.am b/storage/example/Makefile.am
index efc0ede91e9..3f7da21ad40 100644
--- a/storage/example/Makefile.am
+++ b/storage/example/Makefile.am
@@ -26,11 +26,10 @@ INCLUDES = -I$(top_srcdir)/include \
-I$(srcdir)
WRAPLIBS=
-pkglib_LTLIBRARIES = ha_example.la
+pkglib_LIBRARIES = libexample.a
-ha_example_la_LDFLAGS = -module
noinst_HEADERS = ha_example.h
-ha_example_la_SOURCES = ha_example.cc
+libexample_a_SOURCES = ha_example.cc
LDADD =
diff --git a/storage/example/ha_example.cc b/storage/example/ha_example.cc
index dff36e10b1a..433fc3e78e0 100644
--- a/storage/example/ha_example.cc
+++ b/storage/example/ha_example.cc
@@ -726,6 +726,7 @@ int ha_example::create(const char *name, TABLE *table_arg,
DBUG_RETURN(0);
}
+#ifdef MYSQL_PLUGIN
mysql_declare_plugin
{
MYSQL_STORAGE_ENGINE_PLUGIN,
@@ -738,4 +739,4 @@ mysql_declare_plugin
0x0001 /* 0.1 */,
}
mysql_declare_plugin_end;
-
+#endif