]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
rpath for ldns if needed
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 24 Mar 2009 14:55:34 +0000 (14:55 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 24 Mar 2009 14:55:34 +0000 (14:55 +0000)
git-svn-id: file:///svn/unbound/trunk@1553 be551aaa-1e26-0410-a405-d3ace91eadb9

configure
configure.ac

index 19c04379e0559c9f7626ce7453d312a23a6f0b7b..61773ca610c2ef7eb6d2b4d999f8e43a2d33c5b5 100755 (executable)
--- a/configure
+++ b/configure
@@ -27152,6 +27152,9 @@ if test "${with_ldns+set}" = set; then
   withval=$with_ldns;  specialldnsdir="$withval"
        CPPFLAGS="-I$withval/include $CPPFLAGS"
        LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
+       if test "x$enable_rpath" = xyes; then
+           RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
+       fi
        ldnsdir="$withval"
 
 
index b279c71c6ba6fb7236cb219b07aea409248bc954..49a39cdcbd786c5c312e24a29dfc97745278befc 100644 (file)
@@ -413,6 +413,9 @@ AC_ARG_WITH(ldns, AC_HELP_STRING([--with-ldns=PATH],
        [ specialldnsdir="$withval"
        CPPFLAGS="-I$withval/include $CPPFLAGS"
        LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
+       if test "x$enable_rpath" = xyes; then
+           RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
+       fi
        ldnsdir="$withval"
        AC_SUBST(ldnsdir)
 ])