Problem with /usr/lib/libcrypt.a when building perl/python with libressl

Brandon Allbery allbery.b at
Mon Feb 29 14:22:27 UTC 2016

On Mon, Feb 29, 2016 at 4:05 AM, Dewayne Geraghty <dewaynegeraghty at
> wrote:

> I understand the value of fPIC for shareable libraries but I'm a little
> confused as to why libcrypt.a requires -fPIC; which BTW does enable both
> python, perl and others to build cleanly.

Both perl and python load crypto support as shared objects associated with
their respective loadable modules. As such, you can't link non-PIC static
objects into those shared objects on amd64 (although it works, pretty much
by accident, on i386 32-bit).

brandon s allbery kf8nh                               sine nomine associates
allbery.b at                                  ballbery at
unix, openafs, kerberos, infrastructure, xmonad

More information about the freebsd-stable mailing list