diff options
author | JINMEI Tatuya <jinmei@isc.org> | 2012-10-31 23:38:21 +0100 |
---|---|---|
committer | JINMEI Tatuya <jinmei@isc.org> | 2012-10-31 23:38:21 +0100 |
commit | 8df24b61c35bf2e4963c195e1c927980e16c4a9c (patch) | |
tree | 8f9be4f938d05834764de326c2204c16af80300b /examples | |
parent | [2356] introduce the helper m4 macro to identify -R variant linker options (diff) | |
download | kea-8df24b61c35bf2e4963c195e1c927980e16c4a9c.tar.xz kea-8df24b61c35bf2e4963c195e1c927980e16c4a9c.zip |
[2356] added some note about rpath
Diffstat (limited to 'examples')
-rw-r--r-- | examples/configure.ac | 4 | ||||
-rw-r--r-- | examples/m4/ax_isc_bind10.m4 | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/examples/configure.ac b/examples/configure.ac index fe806fd9a7..ef9cce0d8a 100644 --- a/examples/configure.ac +++ b/examples/configure.ac @@ -13,6 +13,10 @@ AC_LANG([C++]) # Checks for BIND 10 headers and libraries AX_ISC_BIND10 + +# We use -R, -rpath etc so the resulting program will be more likekly to +# "just work" by default. Embedding a specific library path is a controversial +# practice, though; if you don't like it you can remove the following setting. if test "x$BIND10_RPATH" != "x"; then LDFLAGS="$LDFLAGS $BIND10_RPATH" fi diff --git a/examples/m4/ax_isc_bind10.m4 b/examples/m4/ax_isc_bind10.m4 index 3607c913cb..158f42db7a 100644 --- a/examples/m4/ax_isc_bind10.m4 +++ b/examples/m4/ax_isc_bind10.m4 @@ -20,6 +20,14 @@ dnl Checks for other BIND 10 module libraries are option, as not all dnl applications need all libraries. The main configure.ac can handle any dnl missing library as fatal by checking whether the corresponding dnl BIND10_xxx_LIB is defined. +dnl +dnl In addition, it sets the BIND10_RPATH variable to a usable linker option +dnl to embed the path to the BIND 10 library to the programs that are to be +dnl linked with the library. If the developer wants to use the option, +dnl it can be used as follows: +dnl if test "x$BIND10_RPATH" != "x"; then +dnl LDFLAGS="$LDFLAGS $BIND10_RPATH" +dnl fi AC_DEFUN([AX_ISC_BIND10], [ AC_REQUIRE([AX_BOOST_INCLUDE]) |