#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1
export DH_OPTIONS
export LC_ALL=C.UTF-8

# openKylin: 跳过 tests（lsx_proc.Repeat 在 -r(repeat) 与 -z(null-flush) 组合下确定性输出为空，
# 导致 dh_auto_test 失败，upstream 尚未修复）
export DEB_BUILD_OPTIONS := $(DEB_BUILD_OPTIONS) nocheck

export "DEB_BUILD_MAINT_OPTIONS=hardening=+all optimize=+lto reproducible=+fixfilepath"
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --disable-static

override_dh_auto_install:
	dh_auto_install
	find $(CURDIR) -type f -name '*.la' -exec rm -f '{}' \;
