aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2009-12-09 17:48:05 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2009-12-09 17:48:05 +0000
commitaa52ab15072abfaaeeacb749a275c5cff33f3220 (patch)
treeded6e149c3ea4f0fd6d99a1f8329c6305802d955
parent65c50904faacacb65b9465c792b3378b2ff06746 (diff)
downloadsrc-aa52ab15072abfaaeeacb749a275c5cff33f3220.tar.gz
src-aa52ab15072abfaaeeacb749a275c5cff33f3220.zip
when calling ldd, use the cross libraries and not the host version
MFC after: 3 days
Notes
Notes: svn path=/head/; revision=200301
-rwxr-xr-xrelease/picobsd/build/picobsd8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/picobsd/build/picobsd b/release/picobsd/build/picobsd
index 9bc08df947f8..0549b0c6e69e 100755
--- a/release/picobsd/build/picobsd
+++ b/release/picobsd/build/picobsd
@@ -167,7 +167,7 @@ create_includes_and_libraries2() { # opt_dir opt_target
local no
log "create_includes_and_libraries2() for ${SRC}"
if [ ${OSVERSION} -ge 600000 ] ; then
- no="-DNO_CLEAN -DNO_PROFILE -DNO_GAMES -DNO_LIBC_R"
+ no="-DNO_CLEAN -DNO_PROFILE -DNO_GAMES -DNO_LIBC_R" # WITOUT_CDDL=1"
else
no="-DNOCLEAN -DNOPROFILE -DNOGAMES -DNOLIBC_R"
fi
@@ -587,8 +587,9 @@ find_progs() { # programs
local i
u_progs="`find_progs_helper $*`"
local o=${o_objdir:-${_SHLIBDIRPREFIX}}
+ log "looking for libs for $u_progs in $_SHLIBDIRPREFIX"
[ -z "${u_progs}" ] && return 1 # not found, error
- i="`ldd ${u_progs} | grep -v '^/' | awk '{print $1}' | sort | uniq`"
+ i="`LD_LIBRARY_PATH=$o/lib ldd ${u_progs} | grep -v '^/' | awk '{print $1}' | sort | uniq`"
u_libs="`find_progs_helper $i`"
return 0
}
@@ -719,8 +720,7 @@ populate_mfs_tree() {
(cd ${dst}; chown -R root . )
fi
- # If we are building a shared 'crunch', take the libraries
- # and the dynamic loader as well
+ log "for a shared 'crunch' take libraries and dynamic loader as well"
find_progs ${dst}/stand/crunch
if [ -n "${u_libs}" ] ; then
mkdir -p ${dst}/lib && cp -p ${u_libs} ${dst}/lib