diff options
author | jperkin/jonathan@chorlton.adsl.perkin.org.uk <> | 2007-12-19 13:24:43 +0000 |
---|---|---|
committer | jperkin/jonathan@chorlton.adsl.perkin.org.uk <> | 2007-12-19 13:24:43 +0000 |
commit | f988a7e600b2eb997d0211ee0c9e7cb436fd260a (patch) | |
tree | 7e366b1d392d7928acf0727223f607ab5edd44d4 /plugin/daemon_example | |
parent | e591fc7cb829b392948cdc35074f43c52c848f8a (diff) | |
download | mariadb-git-f988a7e600b2eb997d0211ee0c9e7cb436fd260a.tar.gz |
Add new pkgplugindir handling to seperate plugins from libraries,
and allow override for binary distributions. Extend mysql_config
to print compiled-in plugin location for third-party plugins to
use. Resolves bug#31736.
Diffstat (limited to 'plugin/daemon_example')
-rw-r--r-- | plugin/daemon_example/Makefile.am | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/daemon_example/Makefile.am b/plugin/daemon_example/Makefile.am index 92b1ab040fb..4256fecd873 100644 --- a/plugin/daemon_example/Makefile.am +++ b/plugin/daemon_example/Makefile.am @@ -18,14 +18,15 @@ MYSQLDATAdir = $(localstatedir) MYSQLSHAREdir = $(pkgdatadir) MYSQLBASEdir= $(prefix) MYSQLLIBdir= $(pkglibdir) +pkgplugindir = $(libdir)/@PACKAGE@/plugin INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include \ -I$(top_srcdir)/regex \ -I$(top_srcdir)/sql \ -I$(srcdir) @ZLIB_INCLUDES@ EXTRA_LTLIBRARIES = libdaemon_example.la -pkglib_LTLIBRARIES = @plugin_daemon_example_shared_target@ -libdaemon_example_la_LDFLAGS = -module -rpath $(MYSQLLIBdir) +pkgplugin_LTLIBRARIES = @plugin_daemon_example_shared_target@ +libdaemon_example_la_LDFLAGS = -module -rpath $(pkgplugindir) libdaemon_example_la_CXXFLAGS= $(AM_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN libdaemon_example_la_CFLAGS = $(AM_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN libdaemon_example_la_SOURCES = daemon_example.cc |