sys-apps/nvme-cli: Fix cross compilation issue.
authorGwendal Grignou <gwendal@chromium.org>
Mon, 23 May 2016 23:08:54 +0000 (16:08 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 23 May 2016 23:18:58 +0000 (16:18 -0700)
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@chromium.org>
Package-Manager: portage-2.3.0_rc1

sys-apps/nvme-cli/nvme-cli-0.6.ebuild
sys-apps/nvme-cli/nvme-cli-0_pre20150821.ebuild

index ea0ac8934b501fb5d388375a456401a890a0ae6e..63984459755b05afde4dbc1c8931ac30e6a05b35 100644 (file)
@@ -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
 }
index 56a32344df466fefc03989f22dc499c8d5d5fea4..997f71995782889d6ad98cdb7f7a79c143c19c8a 100644 (file)
@@ -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
 }