Re: gcc questions

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

 



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@xxxxxxxxxx          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux