This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
readline/Makefile gets absolute path when configured with relative srcdir
- From: Doug Evans <dje at transmeta dot com>
- To: gdb at sources dot redhat dot com
- Date: Thu, 30 May 2002 14:56:26 -0700
- Subject: readline/Makefile gets absolute path when configured with relative srcdir
When you configure with a relative srcdir, as in
mkdir obj
cd obj
../src/configure blah
this is supposed to avoid absolute pathnames appearing in Makefiles.
This makes it easy to move the tree around.
[at least things used to work that way, dunno if this is a documented rule]
readline/configure.in has this:
case "$host_os" in
msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file
*) BUILD_DIR=`pwd` ;;
esac
AC_SUBST(BUILD_DIR)
which then causes dependencies on config.h in Makefile to be
based on an absolute path. tsk tsk.
Studying Makefile.in I don't understand why you would want BUILD_DIR
to ever be something other than ".".
There's no comment explaining the raison d'etre of BUILD_DIR.
What's up?