Gentoo Archives: gentoo-dev

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-dev@l.g.o
Cc: Christoph Junghans <ottxor@g.o>
Subject: Re: [gentoo-dev] [PATCH] cmake-utils.eclass: add Fortran to Gentoo override rules (set valid compiler, append FCFLAGS)
Date: Wed, 18 Feb 2015 06:21:28
Message-Id: 20150218092112.feb01d1e2d367f024905ca9b@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH] cmake-utils.eclass: add Fortran to Gentoo override rules (set valid compiler, append FCFLAGS) by Christoph Junghans
1 On Wed, 11 Feb 2015 11:56:37 -0700 Christoph Junghans wrote:
2 > 2015-02-11 11:14 GMT-07:00 Andrew Savchenko <bircoph@g.o>:
3 > > Hello,
4 > >
5 > > attached patch adds Fortran compiler to Gentoo override rules in
6 > > cmake-utils.eclass the same way C/C++ compilers are added.
7 > >
8 > > This change is needed because packages which force their own
9 > > precedence of Fortran compilers or flags also exists. We hit this
10 > > issue on bug 486626 [1] for sci-libs/lapacke-reference (science
11 > > overlay): if multiple Fortran compilers are installed, e.g. pathf95
12 > > and gfortran, package prefers pathf95 — this may even broke build,
13 > > because most FCFLAGS are not compatible between this compilers
14 > >
15 > > In order to fix this FC should be set from $(tc-getFC), which is
16 > > implemented in proposed patch as well as ensuring proper flags are
17 > > set.
18 > >
19 > > This change was already discussed with KDE team [1] and I'm going to
20 > > commit this patch after feedback or in a week if there are no
21 > > objections.
22 > +1
23
24 Ok. Fix is in tree now.
25
26 Best regards,
27 Andrew Savchenko