mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 14:03:33 -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
|
EAPI=8
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
if [[ ${PV} == 9999 ]]; then
|
if [[ ${PV} == 9999 ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://github.com/Gottox/${PN}.git"
|
EGIT_REPO_URI="https://github.com/Gottox/${PN}.git"
|
||||||
@@ -17,9 +19,14 @@ HOMEPAGE="https://github.com/Gottox/smu"
|
|||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
export CC="$(tc-getCC)"
|
||||||
|
}
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
sed -i \
|
sed -i \
|
||||||
|
-e '/^CC/d' \
|
||||||
-e '/^CFLAGS/ s|-g -O0 ||;s|-Werror ||;s|^CFLAGS =|CFLAGS +=|;' \
|
-e '/^CFLAGS/ s|-g -O0 ||;s|-Werror ||;s|^CFLAGS =|CFLAGS +=|;' \
|
||||||
-e '/^LDFLAGS/ s|^LDFLAGS =|LDFLAGS +=|' \
|
-e '/^LDFLAGS/ s|^LDFLAGS =|LDFLAGS +=|' \
|
||||||
config.mk || die "sed failed"
|
config.mk || die "sed failed"
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
if [[ ${PV} == 9999 ]]; then
|
if [[ ${PV} == 9999 ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://github.com/Gottox/smu.git"
|
EGIT_REPO_URI="https://github.com/Gottox/smu.git"
|
||||||
@@ -17,9 +19,14 @@ HOMEPAGE="https://github.com/Gottox/smu"
|
|||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
export CC="$(tc-getCC)"
|
||||||
|
}
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
sed -i \
|
sed -i \
|
||||||
|
-e '/^CC/d' \
|
||||||
-e '/^CFLAGS/ s|-g -O0 ||;s|-Werror ||;s|^CFLAGS =|CFLAGS +=|;' \
|
-e '/^CFLAGS/ s|-g -O0 ||;s|-Werror ||;s|^CFLAGS =|CFLAGS +=|;' \
|
||||||
-e '/^LDFLAGS/ s|^LDFLAGS =|LDFLAGS +=|' \
|
-e '/^LDFLAGS/ s|^LDFLAGS =|LDFLAGS +=|' \
|
||||||
config.mk || die "sed failed"
|
config.mk || die "sed failed"
|
||||||
|
|||||||
Reference in New Issue
Block a user