Re: Setting up auto conf

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

 



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.

Attachment: pgpoPO0zqyhcP.pgp
Description: PGP signature

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux