library not found for -lgfortran

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


On Jul 8, 2014, at 7:46 PM, Sean Farley <sean at macports.org> 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
/opt/local/lib/gcc48/gcc/x86_64-apple-darwin13/4.8.2/../../../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?

Mark






More information about the macports-dev mailing list