emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building Emacs from a new MinGW environment


From: Eli Zaretskii
Subject: Re: Building Emacs from a new MinGW environment
Date: Tue, 17 Sep 2013 10:16:26 +0300

> Date: Mon, 16 Sep 2013 23:19:41 +0300
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden
> 
> Does it work to replace this line in the top-level Makefile.in
> 
>         @(w32srcdir=`echo "${srcdir}" | ${msys_to_w32}` ;       \
> 
> with this:
> 
>         @(w32srcdir=`(cd "${srcdir}" && pwd -W) | ${msys_to_w32}` ;       \

Actually, a better fix might be in configure.ac, here:


  #### Make srcdir absolute, if it isn't already.  It's important to
  #### avoid running the file name through pwd unnecessarily, since pwd can
  #### give you automounter prefixes, which can go away.  We do all this
  #### so Emacs can find its files when run uninstalled.
  ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
  unset CDPATH
  case "${srcdir}" in
    [[\\/]]* | ?:[[\\/]]*) ;;
    . )
      ## We may be able to use the $PWD environment variable to make this
      ## absolute.  But sometimes PWD is inaccurate.
      ## Note: we used to use $PWD at the end instead of `pwd`,
      ## but that tested only for a well-formed and valid PWD,
      ## it did not object when PWD was well-formed and valid but just wrong.
      if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`"  ;
      then
        srcdir="$PWD"
      else
        srcdir=`(cd "$srcdir"; pwd)`
      fi
    ;;
    *  ) srcdir=`(cd "$srcdir"; pwd)` ;;
  esac

Change this:

  case "${srcdir}" in
    [[\\/]]* | ?:[[\\/]]*) ;;

into this:

  case "${srcdir}" in
    [[\\/]]* | ?:[[\\/]]*) 
    test "$MSYSTEM" = "MINGW32" && srcdir=`(cd "$srcdir"; pwd -W)`
    ;;

This fix, if it works, is better, since it will fix also the stuff
that gets written into .gdbinit file in the build directory (it didn't
work for you because an MSYS file name was written there, and the
MinGW build of GDB doesn't grok that).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]