Gentoo Archives: gentoo-dev

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

Attachments

File name MIME type
cmake-utils.eclass.patch text/x-diff

Replies