commit:     e55849e2f21b1d1b6cb0d08b59ec708093ca2da8
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  9 12:39:01 2022 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Sat Jul  9 15:40:53 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e55849e2

x11-plugins/wmdrawer: respect CC

Closes: https://bugs.gentoo.org/760591
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 x11-plugins/wmdrawer/wmdrawer-0.10.5-r3.ebuild | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/x11-plugins/wmdrawer/wmdrawer-0.10.5-r3.ebuild 
b/x11-plugins/wmdrawer/wmdrawer-0.10.5-r3.ebuild
index 8ed75478b444..d72e2c0e4a88 100644
--- a/x11-plugins/wmdrawer/wmdrawer-0.10.5-r3.ebuild
+++ b/x11-plugins/wmdrawer/wmdrawer-0.10.5-r3.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
+inherit toolchain-funcs
+
 DESCRIPTION="dockapp which provides a drawer (retractable button bar) to 
launch applications"
 HOMEPAGE="http://people.easter-eggs.org/~valos/wmdrawer/";
 SRC_URI="http://people.easter-eggs.org/~valos/wmdrawer/${P}.tar.gz";
@@ -33,11 +35,11 @@ src_prepare() {
        # Do not auto-strip binaries
        sed -i -e 's/   strip $@//' Makefile || die
        # Honour Gentoo LDFLAGS
-       sed -i -e 's/$(CC) -o/$(CC) $(REAL_LDFLAGS) -o/' Makefile || die
+       sed -i -e 's/$(CC) -o/$(CC) $(GENTOO_LDFLAGS) -o/' Makefile || die
 }
 
 src_compile() {
-       emake REAL_LDFLAGS="${LDFLAGS}"
+       emake CC="$(tc-getCC)" GENTOO_LDFLAGS="${LDFLAGS}"
 }
 
 src_install() {

Reply via email to