debian: distribute static libraries

Suggested by Jeroen Meijer.

* debian/rules: Enable static libraries.
* debian/libbddx-dev.install, debian/libspot-dev.install: Distribute
them.
* THANKS: Add Jeroen.
* NEWS: Mention the change.
This commit is contained in:
Alexandre Duret-Lutz 2017-01-13 19:53:21 +01:00
parent 01838a2456
commit 7574d6d1e2
5 changed files with 19 additions and 0 deletions

View file

@ -2,3 +2,4 @@ usr/include/fddx.h
usr/include/bvecx.h
usr/include/bddx.h
usr/lib/*-*/libbddx.so
usr/lib/*-*/libbddx.a

View file

@ -1,3 +1,5 @@
usr/include/spot
usr/lib/*-*/libspot.so
usr/lib/*-*/libspot.a
usr/lib/*-*/libspotltsmin.so
usr/lib/*-*/libspotltsmin.a

12
debian/rules vendored
View file

@ -79,6 +79,18 @@ override_dh_auto_install: fix-js
dh_auto_build -- -C python all; \
dh_auto_install -- -C python; \
done
# Reconfigure to build static libraries. We can't build them
# alongside dynamic libraries, otherwise they will be stuffed with
# LTO stuff that is just two big to distribute. And we cannot use
# the profile generated with LTO on, so we simply build without it.
dh_auto_configure -- \
--disable-devel --enable-optimizations \
--disable-shared --enable-static --disable-python
dh_auto_build -- clean
dh_auto_build -- all
dh_auto_install -- -C buddy
dh_auto_install -- -C spot
# Just remove the Libtool libraries until someone asks for them.
find debian/tmp -name '*.la' -exec rm -rv {} ';'
override_dh_python3:
dh_python3 -p python3-spot