debian/liblzma-dev: avoid linking static lib to libdl

To avoid breaking existing static libs built against liblzma2, let's
just unconditionally skip checking reserved fields past the
traditional end of the lzma_stream structure.  Hopefully most
developers on Debian will test using the shared library by default.

We could have made this change by keying the behavior on __PIC__, but
that seems a little too tricky and inflexible (maybe some platform
uses PIC for ordinary static libraries) so instead we build the static
and shared libraries in separate configure runs.

One subtlety: because the Libs.private setting in the pkgconfig
metadata file is only valid in the static build, the static lib is
installed after the shared library.
3 files changed