[f2py] add link option (Mac OS X)

Brian Toby <[email protected]> Tue, 21 Jun 2011 16:02:05 -0500
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
I would like to add some extra options to the link step for an "f2py -c ..." execution. I note that, when I use "f2py -c --help-fcompiler" I can see that 

  linker_so       = ['/sw/bin/gfortran', '-Wall', '-m32', '-Wall', '-undefined', 'dynamic_lookup', '-bundle']

In specific, I want to add -static-libgfortran and -static-libgcc to these options. 

After skimming all the documentation I could find and making a stab at reading the python scripts, I am still at a complete loss as to how edit the compiler/linker configuration or (better) to influence the link step options via command-line options. 

Brian