#!/usr/bin/make -f

#DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Upstream supports SIMD on amd64 and arm64 only.
SIMD_CPUS := amd64 arm64

NO_SIMD=ON
ifneq ($(filter $(SIMD_CPUS),$(DEB_HOST_ARCH_CPU)),)
NO_SIMD=OFF
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-DBUILD_TESTING=ON \
		-DRKCOMMON_NO_SIMD=$(NO_SIMD)
