]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix loading plugins using just their filenames
authorMichał Kępień <michal@isc.org>
Fri, 22 Apr 2022 11:27:12 +0000 (13:27 +0200)
committerMichał Kępień <michal@isc.org>
Fri, 22 Apr 2022 11:27:12 +0000 (13:27 +0200)
commit5065c4686e08ad412eb0ff1e65cb8f4e18533439
tree53b87b8de295785f30eb87289c819ffa21044d91
parent966fbd1615875eda226a0d25c08f7b4f5394bec8
Fix loading plugins using just their filenames

BIND 9 plugins are installed using Automake's pkglib_LTLIBRARIES stanza,
which causes the relevant shared objects to be placed in the
$(libdir)/@PACKAGE@/ directory, where @PACKAGE@ is expanded to the
lowercase form of the first argument passed to AC_INIT(), i.e. "bind".
Meanwhile, NAMED_PLUGINDIR - the preprocessor macro that the
ns_plugin_expandpath() function uses for determining the absolute path
to a plugin for which only a filename has been provided (rather than a
path) - is set to $(libdir)/named.  This discrepancy breaks loading
plugins using just their filenames.  Fix the issue (and also prevent it
from reoccurring) by setting NAMED_PLUGINDIR to $(pkglibdir).
Makefile.tests
lib/ns/Makefile.am