autoconf
[Top][All Lists]
Advanced

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

Re: How do I build debug versions?


From: Guido Draheim
Subject: Re: How do I build debug versions?
Date: Wed, 07 Mar 2001 14:46:28 +0100

Alexandre Duret-Lutz wrote:
> 
> >>> "Dean" == Dean Hoover <address@hidden> writes:
> 
> [...]
> 
>  Dean> Another thing you could do is make multiple build directories
>  Dean> and always make in a certain way in them. In other words, you
>  Dean> could:
> 
>  Dean> mkdir debug-build opt-build
>  Dean> cd debug-build; $top_srcdir/configure; make debug; cd ..
>  Dean> cd opt-build; $top_srcdir/configure; make; cd ..
> 
> PFE (http://pfe.sourceforge.net/) seems to setup things in a
> way which is close to Shameek's request (it uses Debug/$arch/ and
> Release/$arch/ build directories).  Maybe you can draw some
> ideas from that package.
> 

Well, there are a lot more weird things beyond the needs of most people,
buried under some weird assumptions, f.e. here's a little snippet from
the configure.in, it' soooooo convenient ;-)

case `pwd` in      # implicitly add -DNDEBUG if in path with Release
  */Release/*) OPTIM="-DNDEBUG $OPTIM" ;;
  */Debug/*)   DEBUG="-DDEBUG  $DEBUG" ;;
esac

anyway, there are indeed multiple versions in different subdirectories
of the very same sources, so it may possibly give a few pointers. It
did take some time to figure out how to do it correctly, well, now it 
seems to be rock stable :-))

cheers,
-- guido                                    http://PFE.sourceforge.net
31:GCS/E/S/P C++$++++ ULHS L++w- N++@  d(+-) s+a- h.r(*@)>+++ y++ 5++X-




reply via email to

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