This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Top-level Makefile


On Fri, Nov 30, 2001 at 09:56:05PM -0500, Richard Kenner wrote:
>     Can you post the precise sequence of commands you are using, starting
>     from an empty build directory?
> 
> Well I'm *not* starting from an empty build directory.  I'm doing
> ./config.status or explicitly rerunning configure.

Ah.  Of course David's trick won't work in that case.

However, if you _do_ start from an empty directory, I will be very
surprised if it doesn't.

For reference, this is the script I have sitting at the top of all my
source trees:

#! /bin/sh

srcdir=`dirname $0`
prefix=$HOME/install/${srcdir##*/}
set -ex
#DWARF=--with-dwarf2
#CHECK=--enable-checking
#CHECK=--disable-checking
THREADS=--enable-threads=posix
#SHARED=--enable-shared
#GETTEXT=--with-included-gettext
$srcdir/configure --prefix=$prefix \
	$DWARF $CHECK $THREADS $SHARED $GETTEXT >Lc 2>&1
/usr/bin/time make bootstrap >Lb 2>&1
/usr/bin/time make -k check  >Lk 2>&1

and when I say I bootstrapped the compiler I mean I ran this script
starting from an empty build directory.  It is my understanding that
this is the preferred way to do things.

Try sticking 

CONFIG_SHELL=/path/to/bash
SHELL=/path/to/bash
export SHELL CONFIG_SHELL

at the top of that script, and running it from your build dir, like this:

$ ../src/gcc/build-it

zw


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