app-shells/antibody: Don't build with -pie when testing

Closes: https://bugs.gentoo.org/893190
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
Ronny (tastytea) Gutbrod
2023-02-04 11:10:10 +01:00
parent 946c727ad3
commit 0cdae8c25d

View File

@@ -52,11 +52,19 @@ SRC_URI="
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="dev-vcs/git"
PATCHES=( "${FILESDIR}/${PN}-6.1.1_remove-failing-tests.patch" )
src_configure() {
if use test; then
GOFLAGS="${GOFLAGS/-buildmode=pie/-buildmode=exe}" # bug 893190
fi
}
src_compile() {
local -a mygoargs=(
-ldflags "-X main.version=${PV}"