This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [v3] testsuite_flags absolute path fix



> This is going to interact badly with amd.  This will cause references
> to go through /a/foo/path instead of /nfs/bar/path.  Which will cause
> amd to decide that the automount isn't being used and unmount it in 
> the middle of the build.

Ugggh. Man. 

> Please only canonicalize relative paths.

BLD_DIR used to be passed in from dejagnu, as follows:
  set tmp [remote_exec host ${build-dir}/tests_flags "--built-library 
  ${build-dir} ${src-dir}"]

or with mkcheck and bash as follows:
  srcdir=`cd $(top_srcdir); pwd`; builddir=`pwd`; \

I suppose the bash way probably had this amd problem as well?

I think builddir/srcdir should be able to be deduced correctly, for all 
parties, at configure time. Something like this?

if ${srcdir} contains '..' then
glibcpp_srcdir=`cd ${srcdir} && pwd`
else
glibcpp_srcdir=${srcdir}
fi

??


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]