← Back to team overview

dolfin team mailing list archive

Re: linker options

 

Garth N. Wells wrote:
> With the SCons-based build system, how can I set custom linker flags?
> 
> Garth

You can append flags to an environment like this:
env.Append(CCFLAGS='-pg')
env.Append(LDFLAGS='-pg')

There is also env.Replace and env.Prepend in the same manner.

If you are curious what scons thinks the environment is, do
print env.Dump()

/Dag

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups

References