commit:     b159dcfeed000824de07699aa4dc895aa4c9de3c
Author:     Yuhang Zeng <unlsycn <AT> unlsycn <DOT> com>
AuthorDate: Wed Apr  3 01:25:08 2024 +0000
Commit:     Yuhang Zeng <unlsycn <AT> unlsycn <DOT> com>
CommitDate: Wed Apr  3 01:35:57 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b159dcfe

net-misc/graftcp: pass $(CC) when `make install`

The makefile call $(CC) to detect the machine architecture in a variable
thus it will be evaluated each time we enter the makefile, even when
executing `make install`

Signed-off-by: Yuhang Zeng <unlsycn <AT> unlsycn.com>

 net-misc/graftcp/graftcp-0.7.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-misc/graftcp/graftcp-0.7.1.ebuild 
b/net-misc/graftcp/graftcp-0.7.1.ebuild
index e9dc3322d0..fe0782d1cf 100644
--- a/net-misc/graftcp/graftcp-0.7.1.ebuild
+++ b/net-misc/graftcp/graftcp-0.7.1.ebuild
@@ -53,6 +53,6 @@ src_compile() {
 }
 
 src_install() {
-       emake DESTDIR="${D}" PREFIX="/usr" install
+       emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" 
DESTDIR="${D}" PREFIX="/usr" install
        use systemd && emake DESTDIR="${D}" PREFIX="/usr" install_systemd
 }

Reply via email to