Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2007 09:45:42 +0900 (JST)
From:      NAKATA Maho <chat95@mac.com>
To:        ports@freebsd.org, portmgr@freebsd.org
Subject:   Migration tips for gfortran42 (was Re: Migration to gfortran42)
Message-ID:  <20070111.094542.78764907.chat95@mac.com>
In-Reply-To: <20070109.175640.102530289.chat95@mac.com>
References:  <20070107.133544.78739935.chat95@mac.com> <20070109.175640.102530289.chat95@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070111.094542.78764907.chat95>