gcc questions
Matthew Miller
mattdm at mattdm.org
Sun Nov 27 20:02:47 UTC 2005
On Sun, Nov 27, 2005 at 02:47:39PM -0500, Matthew Miller wrote:
> Program('filename.c',LIBS='m')
To set something like CFLAGS, SCons gets a tiny bit more complicated. You
have to set up an "environment" first, and set the CFLAGS within that
environment. Something like this:
env = Environment(CCFLAGS = '-g -Wall -pedantic')
env.Program('filename.c',LIBS='m')
Another handy trick -- to force everything to rebuild, you can type "scons
-c" and it'll delete all the output-stuff, leaving you with your source
files in a clean directory.
--
Matthew Miller mattdm at mattdm.org <http://mattdm.org/>
Boston University Linux ------> <http://linux.bu.edu/>
More information about the fedora-list
mailing list