Migration tips for gfortran42 (was Re: Migration to gfortran42)

NAKATA Maho chat95 at mac.com
Thu Jan 11 00:46:28 UTC 2007


Hi here is some tips.

* Migrate to gfortran42
WANT_FORTRAN=yes #dummy but future use
BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42

* Useful for link infomation. When link against -lblas or gfortran
compiled libraries with C/C++ programs 
(this corresponds to when some program want to link against libg2c
of libf2c with GNU f77.)

FORTRANLIBDIR=  `${DIRNAME} \`gfortran42 -print-libgcc-file-name\``
FORTRANLIBDIR2= `${DIRNAME} \`gfortran42 -print-libgcc-file-name\``/../../../
FORTRANLIBS=    -lgfortranbegin -lgfortran

-- NAKATA, Maho (maho at FreeBSD.org)


More information about the freebsd-ports mailing list