summaryrefslogtreecommitdiff
path: root/dev-util/github-cli/github-cli-9999.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/github-cli/github-cli-9999.ebuild')
-rw-r--r--dev-util/github-cli/github-cli-9999.ebuild15
1 files changed, 8 insertions, 7 deletions
diff --git a/dev-util/github-cli/github-cli-9999.ebuild b/dev-util/github-cli/github-cli-9999.ebuild
index 95a298653b46..a6d2c60b5a03 100644
--- a/dev-util/github-cli/github-cli-9999.ebuild
+++ b/dev-util/github-cli/github-cli-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -25,6 +25,13 @@ RDEPEND=">=dev-vcs/git-1.7.3"
RESTRICT="test"
src_unpack() {
+ # Filter LTO flags to avoid build failures.
+ filter-lto
+ # Filter '-ggdb3' flag to avoid build failures. bugs.gentoo.org/847991
+ filter-flags "-ggdb3"
+ # Go LDFLAGS are not the same as GCC/Binutils LDFLAGS
+ unset LDFLAGS
+
if [[ ${PV} == *9999 ]]; then
git-r3_src_unpack
go-module_live_vendor
@@ -35,12 +42,6 @@ src_unpack() {
src_compile() {
[[ ${PV} == *9999 ]] || export GH_VERSION="v${PV}"
- # Filter LTO flags to avoid build failures.
- filter-lto
- # Filter '-ggdb3' flag to avoid build failures. bugs.gentoo.org/847991
- filter-flags "-ggdb3"
- # Go LDFLAGS are not the same as GCC/Binutils LDFLAGS
- unset LDFLAGS
# Once we set up cross compiling, this line will need to be adjusted
# to compile for the target.
# Everything else in this function happens on the host.