• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/netatalk/0001-Fix-setting-of-LD_LIBRARY_FLAGS-shlibpath_var.patch
Gustavo ZacariasGustavo Zacarias committed 834da4d454503 Dec 2014
Raw file
Source viewDiff to previous
 
1
From 60d100713b5289948e9cdf5b0646ff3cdd2c206b Mon Sep 17 00:00:00 2001
2
From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
3
Date: Mon, 17 Dec 2012 22:32:44 +0100
4
Subject: [PATCH] Fix setting of LD_LIBRARY_FLAGS ($shlibpath_var).
5
​
6
LD_LIBRARY_PATH should not be set when cross-compiling, because it
7
adds the cross-libraries to the build's LD-path.
8
​
9
Also the restoring of LD_LIBRARY_PATH was done incorrectly: it would
10
set LD_LIBRARY_PATH=LD_LIBRARY_PATH.
11
​
12
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
13
---
14
 macros/db3-check.m4 |    6 +++---
15
 1 file changed, 3 insertions(+), 3 deletions(-)
16
​
17
diff --git a/macros/db3-check.m4 b/macros/db3-check.m4
18
index 902220b..d5a5446 100644
19
--- a/macros/db3-check.m4
20
+++ b/macros/db3-check.m4
21
@@ -94,7 +94,7 @@ if test "x$bdb_required" = "xyes"; then
22
     savedldflags="$LDFLAGS"
23
     savedcppflags="$CPPFLAGS"
24
     savedlibs="$LIBS"
25
-    saved_shlibpath_var=$shlibpath_var
26
+    eval saved_shlibpath_var=\$$shlibpath_var
27
 
28
     dnl required BDB version: 4.6, because of cursor API change
29
     DB_MAJOR_REQ=4
30
@@ -148,7 +148,7 @@ if test "x$bdb_required" = "xyes"; then
31
                         dnl -- LD_LIBRARY_PATH on many platforms. This will be fairly
32
                         dnl -- portable hopefully. Reference:
33
                         dnl -- http://lists.gnu.org/archive/html/autoconf/2009-03/msg00040.html
34
-                        eval export $shlibpath_var=$bdblibdir
35
+                        test "$cross_compiling" = yes || eval export $shlibpath_var=$bdblibdir
36
                         NETATALK_BDB_TRY_LINK
37
                         eval export $shlibpath_var=$saved_shlibpath_var
38
 
39
@@ -171,7 +171,7 @@ if test "x$bdb_required" = "xyes"; then
40
                            CPPFLAGS="-I${bdbdir}/include${subdir} $CPPFLAGS"
41
                            LDFLAGS="-L$bdblibdir $LDFLAGS"
42
 
43
-                           eval export $shlibpath_var=$bdblibdir
44
+                           test "$cross_compiling" = yes || eval export $shlibpath_var=$bdblibdir
45
                            NETATALK_BDB_TRY_LINK
46
                            eval export $shlibpath_var=$saved_shlibpath_var
47
 
48
-- 
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.