aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/bcm2-utils/bcm2-utils-0.9.8.ebuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/dev-embedded/bcm2-utils/bcm2-utils-0.9.8.ebuild b/dev-embedded/bcm2-utils/bcm2-utils-0.9.8.ebuild
index 7d13fc4c0..60746ff4b 100644
--- a/dev-embedded/bcm2-utils/bcm2-utils-0.9.8.ebuild
+++ b/dev-embedded/bcm2-utils/bcm2-utils-0.9.8.ebuild
@@ -3,6 +3,8 @@
EAPI=8
+inherit toolchain-funcs
+
DESCRIPTION="Utilities for Broadcom-based cable modems"
HOMEPAGE="https://github.com/jclehner/bcm2-utils"
SRC_URI="https://github.com/jclehner/bcm2-utils/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
@@ -19,6 +21,11 @@ src_prepare(){
sed -i 's@shell git describe --always@shell git describe --always 2>/dev/null@' "Makefile" || die
}
+src_compile(){
+ emake CC=$(tc-getCC) CXX=$(tc-getCXX) CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} \
+ LDFLAGS=${LDFLAGS}
+}
+
src_install(){
mkdir -p "${D}/usr/bin" || die
emake PREFIX="${D}/usr" install