[Numpy-discussion] f2py with 4.1 under snow leopard

Charles سمير Doutriaux doutriaux1@llnl....
Wed Jun 16 13:05:15 CDT 2010

Hi Robert,

You're right. I finally figured out which flag was missing I'm posting it here as a reference for others:
I needed to add:
-undefined dynamic_lookup
I also removed -fPIC

Hope this helps somebody else.

Do you think it would be possible to have LDFLAGS added to the default ones? Or is there a way to obtain this by setting something else (EXTRA_LDFLAGS) or something like that?


On Jun 16, 2010, at 10:01 AM, Robert Kern wrote:

> 2010/6/16 Charles سمير Doutriaux <doutriaux1@llnl.gov>:
>> Hi,
>> I cannot build any f2py extension under nupmy 4.1 on Mac snow leopard.
>> Everything (python/numpy) has been built 64bit.
>> I'm attaching the log of a VERY simple piece of code, that always worked fine before.
>> Any idea on why it's not finding the basic python things (Py_BuildValue for example?)
> I'm guessing that you have defined the LDFLAGS environment variable.
> When compiling Fortran extensions, LDFLAGS completely replaces the
> link flags. It does not add to them. So the link flags that are
> necessary for building a proper Python extension are lost.
> -- 
> Robert Kern
> "I have come to believe that the whole world is an enigma, a harmless
> enigma that is made terrible by our own mad attempt to interpret it as
> though it had an underlying truth."
>  -- Umberto Eco
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://*mail.scipy.org/mailman/listinfo/numpy-discussion

More information about the NumPy-Discussion mailing list