From f992a0bef38e420858407b122ad82ff2bd8eba7c Mon Sep 17 00:00:00 2001 From: Tomas Hozza Date: Mon, 30 Jul 2012 17:43:11 +0200 Subject: [PATCH] Fixed config.dlz.in so library path is included --- bind-9.9.1-P2-dlz-libdb4.patch | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/bind-9.9.1-P2-dlz-libdb4.patch b/bind-9.9.1-P2-dlz-libdb4.patch index 3cb616b..1099fa4 100644 --- a/bind-9.9.1-P2-dlz-libdb4.patch +++ b/bind-9.9.1-P2-dlz-libdb4.patch @@ -1,6 +1,6 @@ diff -up bind-9.9.1-P2/contrib/dlz/config.dlz.in.libdb4 bind-9.9.1-P2/contrib/dlz/config.dlz.in ---- bind-9.9.1-P2/contrib/dlz/config.dlz.in.libdb4 2012-07-30 16:10:33.764547355 +0200 -+++ bind-9.9.1-P2/contrib/dlz/config.dlz.in 2012-07-30 16:50:47.214757028 +0200 +--- bind-9.9.1-P2/contrib/dlz/config.dlz.in.libdb4 2012-07-30 16:58:57.566418514 +0200 ++++ bind-9.9.1-P2/contrib/dlz/config.dlz.in 2012-07-30 17:30:10.930074108 +0200 @@ -257,7 +257,7 @@ case "$use_dlz_bdb" in # Check other locations for includes. # Order is important (sigh). @@ -10,17 +10,21 @@ diff -up bind-9.9.1-P2/contrib/dlz/config.dlz.in.libdb4 bind-9.9.1-P2/contrib/dl for d in $bdb_incdirs do if test -f "$dd/include${d}db.h" -@@ -281,11 +281,11 @@ case "$use_dlz_bdb" in +@@ -281,15 +281,9 @@ case "$use_dlz_bdb" in bdb_libnames="db48 db-4.8 db47 db-4.7 db46 db-4.6 db45 db-4.5 db44 db-4.4 db43 db-4.3 db42 db-4.2 db41 db-4.1 db" for d in $bdb_libnames do - if test -f "$dd/${target_lib}/lib${d}.so" + if test -f "$dd/${target_lib}/libdb4/lib${d}.so" then - if test "$dd" != "/usr" - then +- if test "$dd" != "/usr" +- then - dlz_bdb_libs="-L${dd}/${target_lib} " -+ dlz_bdb_libs="-L${dd}/${target_lib}/libdb4 " - else - dlz_bdb_libs="" - fi +- else +- dlz_bdb_libs="" +- fi +- dlz_bdb_libs="${dlz_bdb_libs}-l${d}" ++ dlz_bdb_libs="-L${dd}/${target_lib}/libdb4 -l${d}" + break + fi + done