BIND 10 trac2980, updated. c77a043a8a6f6216499cc9697d5881c65bd9ad2d [2980] Take account of differences in DLL naming
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Jun 24 20:04:50 UTC 2013
The branch, trac2980 has been updated
via c77a043a8a6f6216499cc9697d5881c65bd9ad2d (commit)
from 58875c2089c61e5174db855530e9de237920c669 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c77a043a8a6f6216499cc9697d5881c65bd9ad2d
Author: Stephen Morris <stephen at isc.org>
Date: Mon Jun 24 21:03:43 2013 +0100
[2980] Take account of differences in DLL naming
On Ubuntu, DLLs have the suffix .so: on OSX, the suffix is .dylib
-----------------------------------------------------------------------
Summary of changes:
src/lib/hooks/tests/test_libraries.h.in | 37 ++++++++++++++++++++++++-------
1 file changed, 29 insertions(+), 8 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/hooks/tests/test_libraries.h.in b/src/lib/hooks/tests/test_libraries.h.in
index ffc08c8..68ea4e9 100644
--- a/src/lib/hooks/tests/test_libraries.h.in
+++ b/src/lib/hooks/tests/test_libraries.h.in
@@ -15,39 +15,60 @@
#ifndef TEST_LIBRARIES_H
#define TEST_LIBRARIES_H
+#include <config.h>
+
namespace {
+
+// Take carse of differences in DLL naming between operating systems.
+
+#ifdef OS_BSD
+#define DLL_SUFFIX ".dylib"
+
+#else
+#define DLL_SUFFIX ".so"
+
+#endif
+
+
// Names of the libraries used in these tests. These libraries are built using
// libtool, so we need to look in the hidden ".libs" directory to locate the
// .so file. Note that we access the .so file - libtool creates this as a
// like to the real shared library.
// Basic library with context_create and three "standard" callouts.
-static const char* BASIC_CALLOUT_LIBRARY = "@abs_builddir@/.libs/libbcl.so";
+static const char* BASIC_CALLOUT_LIBRARY = "@abs_builddir@/.libs/libbcl"
+ DLL_SUFFIX;
// Library with context_create and three "standard" callouts, as well as
// load() and unload() functions.
-static const char* FULL_CALLOUT_LIBRARY = "@abs_builddir@/.libs/libfcl.so";
+static const char* FULL_CALLOUT_LIBRARY = "@abs_builddir@/.libs/libfcl"
+ DLL_SUFFIX;
// Library where the version() function returns an incorrect result.
-static const char* INCORRECT_VERSION_LIBRARY = "@abs_builddir@/.libs/libivl.so";
+static const char* INCORRECT_VERSION_LIBRARY = "@abs_builddir@/.libs/libivl"
+ DLL_SUFFIX;
// Library where some of the callout registration is done with the load()
// function.
-static const char* LOAD_CALLOUT_LIBRARY = "@abs_builddir@/.libs/liblcl.so";
+static const char* LOAD_CALLOUT_LIBRARY = "@abs_builddir@/.libs/liblcl"
+ DLL_SUFFIX;
// Library where the load() function returns an error.
static const char* LOAD_ERROR_CALLOUT_LIBRARY =
- "@abs_builddir@/.libs/liblecl.so";
+ "@abs_builddir@/.libs/liblecl" DLL_SUFFIX;
// Name of a library which is not present.
-static const char* NOT_PRESENT_LIBRARY = "@abs_builddir@/.libs/libnothere.so";
+static const char* NOT_PRESENT_LIBRARY = "@abs_builddir@/.libs/libnothere"
+ DLL_SUFFIX;
// Library that does not include a version function.
-static const char* NO_VERSION_LIBRARY = "@abs_builddir@/.libs/libnvl.so";
+static const char* NO_VERSION_LIBRARY = "@abs_builddir@/.libs/libnvl"
+ DLL_SUFFIX;
// Library where there is an unload() function.
-static const char* UNLOAD_CALLOUT_LIBRARY = "@abs_builddir@/.libs/libucl.so";
+static const char* UNLOAD_CALLOUT_LIBRARY = "@abs_builddir@/.libs/libucl"
+ DLL_SUFFIX;
} // anonymous namespace
More information about the bind10-changes
mailing list