1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
# Upstream can handle LTO on its own, so disable the flags
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
%:
dh $@ --buildsystem=cmake
override_dh_auto_configure:
dh_auto_configure -- -DGIT_VERSION="$(DEB_VERSION_UPSTREAM)" \
-DBUILD_SHARED_LIBS=ON \
-DBENCHMARK_ENABLE_LTO=ON \
-DBENCHMARK_USE_BUNDLED_GTEST=OFF \
-DBENCHMARK_ENABLE_WERROR=OFF
override_dh_python3:
dh_python3 --shebang=/usr/bin/python3 /usr/share/benchmark
|