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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# GCC 14/15 将隐式函数声明(implicit-function-declaration)由 warning 提升为
# error；dapl 在 dapl/openib_scm/cm.c 中调用 writev() 但从未包含 <sys/uio.h>
# （其声明所在头文件），这里通过编译参数强制包含该头，避免改动上游源码。
# 同时 gcc-15 默认 -std=c23 使 test/dapltest 中 "typedef int bool" 报错
# （C23 起 bool 为关键字），故显式回退到 gnu17（与 gcc<=14 默认一致）。
export CPPFLAGS := $(CPPFLAGS) -include sys/uio.h -std=gnu17

%:
	dh $@ --with autoreconf --parallel
