app-text/smu: fix calling CC directly

Closes: https://bugs.gentoo.org/812116
Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Nickolas Raymond Kaczynski <nrk@disroot.org>
This commit is contained in:
Nickolas Raymond Kaczynski
2021-09-08 16:07:12 +06:00
parent 8aa354b46f
commit f21d03ff3c
2 changed files with 14 additions and 0 deletions

View File

@@ -3,6 +3,8 @@
EAPI=8
inherit toolchain-funcs
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Gottox/${PN}.git"
@@ -17,9 +19,14 @@ HOMEPAGE="https://github.com/Gottox/smu"
LICENSE="MIT"
SLOT="0"
pkg_setup() {
export CC="$(tc-getCC)"
}
src_prepare() {
default
sed -i \
-e '/^CC/d' \
-e '/^CFLAGS/ s|-g -O0 ||;s|-Werror ||;s|^CFLAGS =|CFLAGS +=|;' \
-e '/^LDFLAGS/ s|^LDFLAGS =|LDFLAGS +=|' \
config.mk || die "sed failed"

View File

@@ -3,6 +3,8 @@
EAPI=8
inherit toolchain-funcs
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Gottox/smu.git"
@@ -17,9 +19,14 @@ HOMEPAGE="https://github.com/Gottox/smu"
LICENSE="MIT"
SLOT="0"
pkg_setup() {
export CC="$(tc-getCC)"
}
src_prepare() {
default
sed -i \
-e '/^CC/d' \
-e '/^CFLAGS/ s|-g -O0 ||;s|-Werror ||;s|^CFLAGS =|CFLAGS +=|;' \
-e '/^LDFLAGS/ s|^LDFLAGS =|LDFLAGS +=|' \
config.mk || die "sed failed"