#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all export VERBOSE=1 # filter incompatible options from affecting device code #CXXFLAGS := $(subst -fstack-protector-strong,-Xarch_host -fstack-protector-strong,$(CXXFLAGS)) #CXXFLAGS := $(subst -fcf-protection,-Xarch_host -fcf-protection,$(CXXFLAGS)) CMAKE_FLAGS = \ -DFILE_REORG_BACKWARD_COMPATIBILITY=OFF \ -DBUILD_ROCTRACER64=OFF \ -DROCTRACER_WERROR=OFF %: dh $@ -Scmake override_dh_auto_configure: dh_auto_configure -- $(CMAKE_FLAGS)