mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
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:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user