From 3bb00484a980fbbe5fb350ed75b6f5faeddb6a1d Mon Sep 17 00:00:00 2001 From: Lucio Sauer Date: Sun, 12 May 2024 18:51:43 +0200 Subject: [PATCH] gui-apps/lswt: use CHOST CC Bug: https://bugs.gentoo.org/243502 Signed-off-by: Lucio Sauer --- gui-apps/lswt/lswt-1.0.4.ebuild | 6 ++++++ gui-apps/lswt/lswt-9999.ebuild | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/gui-apps/lswt/lswt-1.0.4.ebuild b/gui-apps/lswt/lswt-1.0.4.ebuild index 310b8cf739..e3a5bc0252 100644 --- a/gui-apps/lswt/lswt-1.0.4.ebuild +++ b/gui-apps/lswt/lswt-1.0.4.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit toolchain-funcs + DESCRIPTION="List Wayland toplevels" HOMEPAGE="https://git.sr.ht/~leon_plickat/lswt/" @@ -22,6 +24,10 @@ DEPEND="dev-libs/wayland" RDEPEND="${DEPEND}" BDEPEND="dev-util/wayland-scanner" +src_compile() { + emake CC="$(tc-getCC)" +} + src_install() { # Need to install to /usr instead of /usr/local # and the Makefile doens't handle DESTDIR properly diff --git a/gui-apps/lswt/lswt-9999.ebuild b/gui-apps/lswt/lswt-9999.ebuild index 310b8cf739..e3a5bc0252 100644 --- a/gui-apps/lswt/lswt-9999.ebuild +++ b/gui-apps/lswt/lswt-9999.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit toolchain-funcs + DESCRIPTION="List Wayland toplevels" HOMEPAGE="https://git.sr.ht/~leon_plickat/lswt/" @@ -22,6 +24,10 @@ DEPEND="dev-libs/wayland" RDEPEND="${DEPEND}" BDEPEND="dev-util/wayland-scanner" +src_compile() { + emake CC="$(tc-getCC)" +} + src_install() { # Need to install to /usr instead of /usr/local # and the Makefile doens't handle DESTDIR properly