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 committed 2021-09-08 16:09:30 +06:00
1 parent 8aa354b46f
commit f21d03ff3c
2 files changed
+14

No files matched your search

+7
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"
+7
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"