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)
This commit is contained in:
Đoàn Trần Công Danh 2021-03-08 10:09:05 +07:00
parent f2c105333a
commit 79905a7022

View file

@ -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="