[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question regarding muliple compilations (for -g vs -O3)
From: |
Marcus G. Daniels |
Subject: |
Re: question regarding muliple compilations (for -g vs -O3) |
Date: |
08 Sep 1998 09:48:01 -0700 |
>>>>> "RLR" == Rick Riolo <address@hidden> writes:
RLR> Now that swarm-1.3 uses a new configure/make process, what is the
RLR> best way to have two swarm compilations, one (the default) with
RLR> -g for debugging), and another (without -g and -O3 say) to run
RLR> smaller and fast? And of course what I would like is to have
RLR> just one src for both versions.
This is why you shouldn't use --srcdir the same as --prefix. What
you need to do is have a different location for the source tree,
a build area, and the installed location.
To the specific question of setting compile-time options, in bourne
shells you can set CFLAGS as below (this exports CFLAGS in the context
of the configure).
$ cd /build-area
$ mkdir swarm-debug
$ cd swarm-debug
$ CFLAGS=-g ./configure --prefix=/usr/local/swarm-debug --srcdir=$SWARMSRCDIR
...
$ make
$ make install
$ cd ..
$ mkdir swarm-opt
$ cd swarm-opt
$ CFLAGS=-O3 ./configure --prefix=/usr/local/swarm-opt --srcdir=$SWARMSRCDIR ...
$ make
$ make install
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
==================================