I am interested in wrapping a Fortran library in Julia, but I find the name mangling a bit problematic for deploying to HPC environments where people may want to use a custom binary. The docs say:
“so to call a Fortran function you must pass the mangled identifier corresponding to the rule followed by your Fortran compiler”
My first reaction was ok I’ll use BinaryBuilder and that way the compiler will be consistent and I’ll know what the names of the functions to wrap are. Basically I just need to make sure BinaryBuilder is using a consistent gfortran (I just want linux).
However, this code links against libraries that could in theory be vendor specific like MPI and BLAS (think an HPC environment). If I want users to be able to use their custom compiled version of the fortran library I have no control over the compiler and therefore no control over the mangled names. Is this just something I will be unable to support?
Thanks!