commit:     82abd79e472da2085e1c05785d87c76de87d017b
Author:     Alexey Sokolov <sokolov <AT> google <DOT> com>
AuthorDate: Sat Nov 14 12:36:07 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Nov 20 10:37:00 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82abd79e

app-cdr/bchunk: Fix build without native symlinks, pass flags

Closes: https://bugs.gentoo.org/726370
Closes: https://bugs.gentoo.org/718168
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-cdr/bchunk/bchunk-1.2.2.ebuild | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/app-cdr/bchunk/bchunk-1.2.2.ebuild 
b/app-cdr/bchunk/bchunk-1.2.2.ebuild
index fac20a0e3c2..2ad0cacac6f 100644
--- a/app-cdr/bchunk/bchunk-1.2.2.ebuild
+++ b/app-cdr/bchunk/bchunk-1.2.2.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=7
 
+inherit toolchain-funcs
+
 DESCRIPTION="Convert CD images from bin/cue to iso+wav/cdr"
 HOMEPAGE="http://he.fi/bchunk/";
 SRC_URI="http://he.fi/bchunk/${P}.tar.gz";
@@ -13,6 +15,13 @@ KEYWORDS="amd64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux 
~ppc-macos ~x64-maco
 
 DOCS=( "${PN}.spec" README ChangeLog )
 
+src_compile() {
+       emake \
+               CC="$(tc-getCC)" \
+               CFLAGS="${CFLAGS}" \
+               LD="$(tc-getCC)"
+}
+
 src_install() {
        dobin "${PN}"
        doman "${PN}.1"

Reply via email to