#!/usr/bin/make -f

export FC_DEFAULT=gfortran
export FC_OPTIONAL=flang-21 flang-22 lfortran

export DH_VERBOSE=1

# Needed for x86 build with gfortran
export DEB_LDFLAGS_MAINT_APPEND=-fPIC

# The magic debhelper  rule
%:
	dh $@ --with fortran --buildsystem fortran

execute_after_dh_fixperms:
	chrpath -d debian/libfortran-assert0/usr/lib/*/*
