commit:     377a0f042d89b7280bb4fb2f757e828b6f6736c3
Author:     Gwendal Grignou <gwendal <AT> chromium <DOT> org>
AuthorDate: Mon May 23 23:08:54 2016 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon May 23 23:18:58 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=377a0f04

sys-apps/nvme-cli: Fix cross compilation issue.

When not setting CC, the compilation fails on option: -clang-syntax
"gcc.real: error: unrecognized command line option '-clang-syntax'"

Addressed the issue by properly setting the CC variable.

Signed-off-by: Gwendal Grignou <gwendal <AT> chromium.org>

Package-Manager: portage-2.3.0_rc1

 sys-apps/nvme-cli/nvme-cli-0.6.ebuild           | 6 ++++++
 sys-apps/nvme-cli/nvme-cli-0_pre20150821.ebuild | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/sys-apps/nvme-cli/nvme-cli-0.6.ebuild 
b/sys-apps/nvme-cli/nvme-cli-0.6.ebuild
index ea0ac89..6398445 100644
--- a/sys-apps/nvme-cli/nvme-cli-0.6.ebuild
+++ b/sys-apps/nvme-cli/nvme-cli-0.6.ebuild
@@ -4,6 +4,8 @@
 
 EAPI=6
 
+inherit toolchain-funcs
+
 DESCRIPTION="NVM-Express user space tooling for Linux"
 HOMEPAGE="https://github.com/linux-nvme/nvme-cli";
 SRC_URI="https://github.com/linux-nvme/nvme-cli/archive/v${PV}.tar.gz";
@@ -24,6 +26,10 @@ src_prepare() {
        default
 }
 
+src_compile() {
+       emake CC="$(tc-getCC)"
+}
+
 src_install() {
        emake DESTDIR="${D}" PREFIX=/usr install
 }

diff --git a/sys-apps/nvme-cli/nvme-cli-0_pre20150821.ebuild 
b/sys-apps/nvme-cli/nvme-cli-0_pre20150821.ebuild
index 56a3234..997f719 100644
--- a/sys-apps/nvme-cli/nvme-cli-0_pre20150821.ebuild
+++ b/sys-apps/nvme-cli/nvme-cli-0_pre20150821.ebuild
@@ -4,6 +4,8 @@
 
 EAPI=5
 
+inherit toolchain-funcs
+
 DESCRIPTION="NVM-Express user space tooling for Linux"
 HOMEPAGE="https://github.com/linux-nvme/nvme-cli";
 EGIT_COMMIT="709571d77bf618921fd719253da677742c673d06"
@@ -24,6 +26,10 @@ src_prepare() {
                -i Documentation/Makefile || die
 }
 
+src_compile() {
+       emake CC="$(tc-getCC)"
+}
+
 src_install() {
        emake DESTDIR="${D}" PREFIX=/usr install
 }

Reply via email to