From 79905a7022681e63342e588ed36bc759b373d7d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 8 Mar 2021 10:09:05 +0700 Subject: [PATCH] openmpi: set $libdir relative to $prefix openmpi inventes its own version of AC_CONFIG_SUBDIRS, passing $libdir relatives to $exec_prefix without initialising $exec_prefix will pass $libdir as NONE/lib{32,64}. We can't set $exec_prefix relative to $prefix because autotools will expand the value only twice. See c96738a6e9, (common/gnu-configure-args: set exec_prefix to ${prefix}, 2021-02-23) and 9bdf2f6e4d, (Revert "common/gnu-configure-args: set exec_prefix to ${prefix}", 2021-03-05) --- srcpkgs/openmpi/template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srcpkgs/openmpi/template b/srcpkgs/openmpi/template index c0eeb69b1e3..696765fbd40 100644 --- a/srcpkgs/openmpi/template +++ b/srcpkgs/openmpi/template @@ -3,7 +3,8 @@ pkgname=openmpi version=4.1.0 revision=3 build_style=gnu-configure -configure_args="--enable-ipv6 --with-hwloc=${XBPS_CROSS_BASE}/usr" +configure_args="--enable-ipv6 --with-hwloc=${XBPS_CROSS_BASE}/usr + --libdir=\${prefix}/lib${XBPS_TARGET_WORDSIZE}" hostmakedepends="gcc-fortran libgomp-devel perl pkg-config automake libtool" makedepends="libgfortran-devel libgomp-devel libhwloc-devel zlib-devel libevent-devel" conf_files="