1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/usr/bin/make -f
# optimize=-lto because I use Meson's LTO
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto qa=+all
# Required as libpistache-dev ships .a files
export DEB_CXXFLAGS_MAINT_APPEND = -ffat-lto-objects
%:
dh $@ --buildsystem=meson
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
test := true
else
test := false
endif
override_dh_auto_configure:
dh_auto_configure -- \
--default-library=both \
-Db_lto=true \
-DPISTACHE_BUILD_TESTS=$(test) \
-DPISTACHE_USE_SSL=true
|