math/blas linking to gfortran with LDADD?= -lgfortran

Peter Jeremy peterjeremy at
Sun Sep 5 22:09:33 UTC 2010

On 2010-Aug-31 17:14:50 -0400, jhell <jhell at> wrote:
>On 08/31/2010 15:06, b. f. wrote:
>> Would you elaborate, please?  Where is a transcript showing the linking failure?
>> Would you mail it to me off-list?
>Simply -lgfortran by it self should not work. Since lib directories

Actually, IMO, since is a support library for gfortran
(much like is), it is reasonable for a user to expect
that '-lgfortran' _is_ sufficient and the current behaviour is a bug.
ports/129518 says I'm not the only person who think that.

>-L/usr/local/lib/gcc44 would have to be passed to LDFLAGS in order for
>it to be found.

And '-R/usr/local/lib/gcc44' as well.

Note that a work-around has been added to so that ports
with USE_GCC shouldbehave correctly and the problem is limited to
using a non-base gcc outside the ports system.

Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list