<div dir="ltr"><div class="gmail_extra">Still not quite ready to call this solved even though I got the "why"...</div><div class="gmail_extra"><br></div><div class="gmail_extra">f2py will let LDFLAGS override the default built-in linker flags from "linker_exe" and "linker_so". I would think at a minimum you would want it as an append, not an override if not outright ignore the environment variables for this specific case.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">$ f2py3 -c --help-fcompiler</div><div class="gmail_extra">Gnu95FCompiler instance properties:</div><div class="gmail_extra">[SNIP]</div>
<div class="gmail_extra"> linker_exe = ['/usr/bin/gfortran', '-Wall', '-Wall']</div><div class="gmail_extra"> linker_so = ['/usr/bin/gfortran', '-Wall', '-Wall', '-shared']</div>
<div><br></div></div><div class="gmail_extra">Thanks,</div><div class="gmail_extra">Richard</div></div>