Bug#614148: guiqwt: FTBFS: tries to include non-PIC FORTRANobject in shared library

Aaron M. Ucko ucko at debian.org
Sun Feb 20 20:53:28 UTC 2011


PICCA Frédéric-Emmanuel <frederic-emmanuel.picca at 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/?amu@monk.mit.edu



More information about the debian-science-maintainers mailing list