library not found for -lgfortran

Mark Brethen mark.brethen at
Wed Jul 9 17:42:22 PDT 2014

On Jul 8, 2014, at 7:46 PM, Sean Farley <sean at> wrote:

> Try setting 'configure.ld ${configure.fc}' in the pre-configure stage
> and see if that works. It might not but is worth a shot.

exec gfortran-mp-4.8 --print-file-name libgfortran.dylib

Then, would this be an acceptable workaround?

pre-configure {
libgfortran = [exec gfortran-mp-4.8 --print-file-name libgfortran.a]
configure.ldflags-append "-L${file dirname libgfortran} -lgfortran"

Is there is a variable that expands to the fortran compiler?


More information about the macports-dev mailing list