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
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"
default
}
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
src_install() {
emake DESTDIR="${D}" PREFIX=/usr install
}
EAPI=5
+inherit toolchain-funcs
+
DESCRIPTION="NVM-Express user space tooling for Linux"
HOMEPAGE="https://github.com/linux-nvme/nvme-cli"
EGIT_COMMIT="709571d77bf618921fd719253da677742c673d06"
-i Documentation/Makefile || die
}
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
src_install() {
emake DESTDIR="${D}" PREFIX=/usr install
}