mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
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:
@@ -52,11 +52,19 @@ SRC_URI="
|
|||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
RDEPEND="dev-vcs/git"
|
RDEPEND="dev-vcs/git"
|
||||||
|
|
||||||
PATCHES=( "${FILESDIR}/${PN}-6.1.1_remove-failing-tests.patch" )
|
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() {
|
src_compile() {
|
||||||
local -a mygoargs=(
|
local -a mygoargs=(
|
||||||
-ldflags "-X main.version=${PV}"
|
-ldflags "-X main.version=${PV}"
|
||||||
|
|||||||
Reference in New Issue
Block a user