sys-apps/likwid: respect CC
authorGöktürk Yüksek <gokturk@gentoo.org>
Wed, 2 Nov 2016 15:52:34 +0000 (11:52 -0400)
committerGöktürk Yüksek <gokturk@gentoo.org>
Wed, 2 Nov 2016 16:08:52 +0000 (12:08 -0400)
Package-Manager: portage-2.2.28

sys-apps/likwid/likwid-4.1.2.ebuild

index 65667771524bc1a23869e5f343997683449a6fa6..a20b746b131f4c102604704f88e773b3ca41a669 100644 (file)
@@ -6,7 +6,7 @@ EAPI=6
 
 FORTRAN_NEEDED=fortran
 
-inherit fcaps linux-info fortran-2
+inherit fcaps linux-info toolchain-funcs fortran-2
 
 DESCRIPTION="A performance-oriented tool suite for x86 multicore environments"
 HOMEPAGE="https://github.com/rrze-likwid/likwid"
@@ -78,6 +78,10 @@ src_prepare() {
                        || die "Failed to set GCC flags for fortran"
        fi
 
+       # Respect CC
+       sed -e "s:^CC.*:CC = $(tc-getCC):" \
+               -i make/include_GCC.mk || die
+
        default
 
 }