mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-cluster/ucx: Fix numa support
Closes: https://bugs.gentoo.org/654432 Signed-off-by: Justin Lecher <jlec@gentoo.org> Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
@@ -9,4 +9,7 @@
|
||||
<email>cluster@gentoo.org</email>
|
||||
<name>Gentoo Cluster Project</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="numa">Add support for numa memory allocation</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
||||
@@ -12,12 +12,16 @@ SRC_URI="https://github.com/openucx/ucx/releases/download/v${PV}/${P}.tar.gz"
|
||||
SLOT="0"
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
IUSE="+numa +openmp"
|
||||
|
||||
RDEPEND="
|
||||
numa? ( sys-process/numactl )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed \
|
||||
-e '/^BASE_CFLAGS/s:=.*:=:g' \
|
||||
-e '/BASE_CFLAGS=/s:=".*":=:g' \
|
||||
-i config/m4/compiler.m4 || die
|
||||
eautoreconf
|
||||
}
|
||||
@@ -25,5 +29,7 @@ src_prepare() {
|
||||
src_configure() {
|
||||
BASE_CFLAGS="" \
|
||||
econf \
|
||||
--disable-compiler-opt
|
||||
--disable-compiler-opt \
|
||||
$(use_enable numa) \
|
||||
$(use_enable openmp)
|
||||
}
|
||||
Reference in New Issue
Block a user