Browse Source

netatalk: prevent use of LD_LIBRARY_PATH

Add a patch to prevent use of LD_LIBRARY_PATH when checking for BDB libs
This caused build failure when host = target

Signed-off-by: Nicolas Thill <nico@openwrt.org>
Nicolas Thill 10 years ago
parent
commit
0fa95f0e25
1 changed files with 26 additions and 0 deletions
  1. 26
    0
      net/netatalk/patches/002-ld_library_path.patch

+ 26
- 0
net/netatalk/patches/002-ld_library_path.patch View File

@@ -0,0 +1,26 @@
1
+--- a/macros/db3-check.m4
2
++++ b/macros/db3-check.m4
3
+@@ -148,9 +148,9 @@ AC_DEFUN([AC_PATH_BDB],[
4
+                         dnl -- LD_LIBRARY_PATH on many platforms. This will be fairly
5
+                         dnl -- portable hopefully. Reference:
6
+                         dnl -- http://lists.gnu.org/archive/html/autoconf/2009-03/msg00040.html
7
+-                        eval export $shlibpath_var=$bdblibdir
8
++#                        eval export $shlibpath_var=$bdblibdir
9
+                         NETATALK_BDB_TRY_LINK
10
+-                        eval export $shlibpath_var=$saved_shlibpath_var
11
++#                        eval export $shlibpath_var=$saved_shlibpath_var
12
+ 
13
+                         if test x"${atalk_cv_bdb_version}" = x"yes"; then
14
+                             BDB_CFLAGS="-I${bdbdir}/include${subdir}"
15
+@@ -171,9 +171,9 @@ AC_DEFUN([AC_PATH_BDB],[
16
+                            CPPFLAGS="-I${bdbdir}/include${subdir} $CPPFLAGS"
17
+                            LDFLAGS="-L$bdblibdir $LDFLAGS"
18
+ 
19
+-                           eval export $shlibpath_var=$bdblibdir
20
++#                           eval export $shlibpath_var=$bdblibdir
21
+                            NETATALK_BDB_TRY_LINK
22
+-                           eval export $shlibpath_var=$saved_shlibpath_var
23
++#                           eval export $shlibpath_var=$saved_shlibpath_var
24
+ 
25
+                            if test x"${atalk_cv_bdb_version}" = x"yes"; then
26
+                               BDB_CFLAGS="-I${bdbdir}/include${subdir}"