This is the mail archive of the guile@cygnus.com mailing list for the guile project.


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

Re: Anon build failure.



> 1. Is:
> 
>    CFLAGS='-O2 -g -pg' ./configure --disable-shared
> 
>    the intended way to make a profiling version for testing?  I'm
>    doing --disable-shared to avoid inadvertently pulling in the wrong
>    shared lib.  The question is really about using CFLAGS to do this.
>    I tried throwing the -pg onto the DEFS variable, as in:
> 
>      743  DEFS=-pg LIBS=-pg ./configure --disable-shared 
>      744  DEFS=-pg LIBS=-pg make
> 
>    but that didn't work.

CFLAGS is supposed to work.  That variable exists explicitly for the
person building the sources to tweak; the configuration process
shouldn't take it over for its own purposes.  It should at most
provide a convenient default value, but even that should be small
enough that the user can override it easily; -O2 -g is okay.


> 2. What's the easiest/fastest way to rebuild after a cvs update?  I
>    couldn't seem to find this anywher in the docs.  Should I do make
>    or make distclean ; ./configure ; make; or what?  Can I mostly just
>    do 'make' unless there are *.in changes (which I can see when I do
>    cvs update) or do I have to do more than that?  Is distclean the
>    appropriate target for starting from scratch?

If no .in files have changed, just `make' should work.  If some
Makefile.am or Makefile.in files have changed, you need to re-run
config.status.  If configure.in or aclocal.m4 have changed, you'll
need to run configure again.

The other approach is to get the right versions of libtool, automake,
and autoconf installed (according to the README), and configure with 
--enable-maintainer-mode.  Then `make' should do absolutely
everything.  It's a little unnerving.