|
@@ -4,14 +4,21 @@
|
|
|
#
|
|
|
################################################################################
|
|
|
|
|
|
-OPENMPI_VERSION_MAJOR = 4.0
|
|
|
-OPENMPI_VERSION = $(OPENMPI_VERSION_MAJOR).0
|
|
|
+OPENMPI_VERSION_MAJOR = 4.1
|
|
|
+OPENMPI_VERSION = $(OPENMPI_VERSION_MAJOR).4
|
|
|
OPENMPI_SITE = https://www.open-mpi.org/software/ompi/v$(OPENMPI_VERSION_MAJOR)/downloads
|
|
|
OPENMPI_SOURCE = openmpi-$(OPENMPI_VERSION).tar.bz2
|
|
|
OPENMPI_LICENSE = BSD-3-Clause
|
|
|
OPENMPI_LICENSE_FILES = LICENSE
|
|
|
OPENMPI_INSTALL_STAGING = YES
|
|
|
|
|
|
+# The macro searching for IME (Infinite Memory Engine) filesystem
|
|
|
+# brings "-I/usr/local/include" in the CPPFLAGS, even if not
|
|
|
+# 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
|
|
|
+
|
|
|
# Enabling Fortran support requires pre-seeding the configure script
|
|
|
# with various values that cannot be guessed, so we provide cache
|
|
|
# files for various architectures.
|
|
@@ -43,6 +50,10 @@ ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
|
|
|
OPENMPI_CFLAGS += -O0
|
|
|
endif
|
|
|
|
|
|
-OPENMPI_CONF_ENV = CFLAGS="$(OPENMPI_CFLAGS)"
|
|
|
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
+OPENMPI_LIBS += -latomic
|
|
|
+endif
|
|
|
+
|
|
|
+OPENMPI_CONF_ENV = CFLAGS="$(OPENMPI_CFLAGS)" LIBS="$(OPENMPI_LIBS)"
|
|
|
|
|
|
$(eval $(autotools-package))
|