rev.284898 removed _SHLIBDIRPREFIX so we need to reconstruct its value

to properly locate libraries created in the buildworld phase.
This commit is contained in:
Luigi Rizzo 2015-07-10 05:07:18 +00:00
parent 0b75d21e18
commit 9d73ee0f82

View File

@ -532,7 +532,11 @@ do_links() { # rootdir varname
# if no argument default to objdir/SHLIBDIRPREFIX for both
find_progs() { # programs
# logverbose "find_progs: called with $*"
local i=`realpath ${o_objdir:-${_SHLIBDIRPREFIX}/..}`
# rev.284898 removed _SHLIBDIRPREFIX so we need to reconstruct
# its value in i1
local i1=${_SHLIBDIRPREFIX:-${l_objtree}/${SRC}/tmp}
local i=`realpath ${o_objdir:-${i1}/..}`
# default values for -L and -P
local dir="-P $i"
local ldir="-L $i"