[Buildroot] [PATCH 3/5] package/openmpi: enable mpi compiler wrapper scripts

Julien Olivain ju.o at free.fr
Tue Feb 7 22:09:39 UTC 2023


openmpi normally includes compiler wrapper binary programs (e.g. mpicc,
mpicxx, etc...). Those programs are inconvenient when cross compiling.
Those target binary wrappers are useless in Buildroot, as the target
root filesystem does not include compilers. For cross compilation,
openmpi also ships Perl scripts providing a subset of those functions.
With those compiler wrappers, openmpi programs can now be cross
compiled properly in Buildroot. This patch enables those wrappers.

Signed-off-by: Julien Olivain <ju.o at free.fr>
---
 package/openmpi/openmpi.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/openmpi/openmpi.mk b/package/openmpi/openmpi.mk
index f14b55ced5..e6f5cd0250 100644
--- a/package/openmpi/openmpi.mk
+++ b/package/openmpi/openmpi.mk
@@ -17,7 +17,9 @@ OPENMPI_INSTALL_STAGING = YES
 # found. This makes the configuration fail. See:
 # https://github.com/open-mpi/ompi/blob/v4.1.4/config/ompi_check_ime.m4#L35
 # Disable explicitly to avoid the issue.
-OPENMPI_CONF_OPTS = --without-ime
+OPENMPI_CONF_OPTS = \
+	--enable-script-wrapper-compilers \
+	--without-ime
 
 # Enabling Fortran support requires pre-seeding the configure script
 # with various values that cannot be guessed, so we provide cache
-- 
2.39.1




More information about the buildroot mailing list