PICCA Frédéric-Emmanuel <frederic-emmanuel.pi...@synchrotron-soleil.fr>
writes:

>> That may also explain why f2py leaves off -fPIC -- if its developers
>> still mostly work on 32-bit systems, they might not have run into any
>> errors stemming from its absence themselves.
>
> Ok do you think I need to fill a bug against python-numpy for this ?

Not necessarily, as a closer look indicates that the situation's a
little more complicated: f2py already knows about -fPIC, but appears to
supply it only in the absence of FFLAGS, which dpkg-buildpackage
automatically sets these days (though it may stop doing so again).  As
such, I would recommend a variant of Lifeng's suggestion: have
debian/rules specify

export FFLAGS = $(shell dpkg-buildflags --get FFLAGS) -fPIC

(using dpkg-buildflags to ensure getting an appropriate setting when
invoking debian/rules directly, or via a potential future version of
dpkg-buildflags that doesn't supply it for you) and likewise for CFLAGS.

Thanks!

--
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?a...@monk.mit.edu



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to