[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting up auto conf
From: |
Luke Mewburn |
Subject: |
Re: Setting up auto conf |
Date: |
Fri, 9 Jan 2009 23:40:38 +1100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Thu, Jan 08, 2009 at 03:50:54PM +0000, Dan Smithers wrote:
| I set up parallel build directories and ran configure with extra arguments.
|
| build/gcc/debug
| ../../../configure CC=gcc CPPFLAGS=-DDEBUG CFLAGS="-O0 -g"
| build/gcc/release
| ../../../configure CC=gcc CPPFLAGS= CFLAGS="-O2"
| build/icc/debug
| ../../../configure CC=icc CPPFLAGS=-DDEBUG CFLAGS="-O0 -g"
| build/icc/release
| ../../../configure CC=icc CPPFLAGS= CFLAGS="-O2"
|
| The sub projects seem to compile correctly, but the linker needs to know
| which build it is using.
|
| Before I added the parallel builds I was building in the build
| directory. I could add paths like this:
|
| foo_LDADD="-lm -L$(srcdir)/../lib -l3rd_party_lib
| -L$(srcdir)/../../sublib/build/src -lsublib
|
| I want to be able to automatically replace build with build/gcc/debug etc.
|
| Is this something that autoconf can do? Is there a better way of
| achieving this?
If you're also using automake, $(top_builddir) may be what you need.
cheers,
Luke.
pgpmr9tnNPca6.pgp
Description: PGP signature