#!/usr/bin/make -f # Build with both # export FC_DEFAULT=gfortran-15 export FC_OPTIONAL=flang-21 lfortran export DH_VERBOSE=1 # Necessary to build shared libraries export DEB_LDFLAGS_MAINT_APPEND=-fPIC # The magic debhelper rule %: dh $@ --with fortran --buildsystem fortran execute_after_dh_auto_install: patchelf --set-soname libassert-gnu.so.0 debian/tmp-gfortran-15/usr/lib/libassert.so mv debian/tmp-gfortran-15/usr/lib/libassert.so debian/tmp-gfortran-15/usr/lib/libassert.so.0