* Ralf Wildenhues wrote on Thu, Aug 19, 2010 at 06:58:31AM CEST:
> * Paolo Bonzini wrote on Sun, Aug 01, 2010 at 04:47:29PM CEST:
> > +# func_resolve_sysroot PATH
> > +# Change PATH to an absolute path or replace a leading = with a
> > +# sysroot. Store the result into func_resolve_sysroot_result
> > +func_resolve_sysroot ()
> > +{
> > + func_resolve_sysroot_result=$1
> > + case $func_resolve_sysroot_result in
> > + [\\/]* | [A-Za-z]:[\\/]*) ;;
> > + =*)
> > + func_stripname '=' '' "$func_resolve_sysroot_result"
> > + func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
> > + ;;
> > + *)
> > + if test -d "$1"; then
> > + absdir=`cd "$1" && pwd`
> > + test -z "$absdir" && \
> > + func_fatal_error "cannot determine absolute directory name of
> > \`$dir'"
> > + func_resolve_sysroot_result=`cd "$dir" && pwd`
> > + else
> > + func_dirname_and_basename "$1" "" "."
> > + absdir=`cd "$func_dirname_result" && pwd`
> > + test -z "$absdir" && \
> > + func_fatal_error "cannot determine absolute directory name of
> > \`$func_dirname_result'"
> > + func_resolve_sysroot_result="$absdir/$func_basename_result"
> > + fi
> > + ;;
> > + esac
> > +}
>
> Why does this function absolutize paths that have nothing to do with
> sysroot, even in-tree deplib paths?
Also, has this been tried with relative paths pointing to nonexistent
directories? We cannot afford to fail at '-L../optional-package/lib'.
Thanks,
Ralf