dev-libs/randomx: remove -fPIE from compilation flags

Closes: https://bugs.gentoo.org/907872
Signed-off-by: Filip Kobierski <fkobi@pm.me>
This commit is contained in:
Filip Kobierski
2024-09-18 23:22:03 +02:00
parent 5603aa26c9
commit 9036a7bd93
2 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake flag-o-matic
DESCRIPTION="Proof of work algorithm based on random code execution"
HOMEPAGE="https://github.com/tevador/RandomX"
SRC_URI="https://github.com/tevador/RandomX/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/RandomX-${PV}
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
PATCHES=( "${FILESDIR}"/${PN}-1.2.1_remove-fPIE.patch )
src_configure() {
append-ldflags -Wl,-z,noexecstack
cmake_src_configure
}