[Numpy-discussion] f2py with 4.1 under snow leopard
Charles سمير Doutriaux
Wed Jun 16 13:05:15 CDT 2010
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:
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 <email@example.com>:
>> 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
More information about the NumPy-Discussion