1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#!/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 libfortran-assert.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
|