-# From https://www.open-mpi.org/software/hwloc/v1.11/
-md5 3c792e23c209e9e1bafe9bdbc613d401 hwloc-1.11.13.tar.bz2
-sha1 c3ae96a845ff3800f28b28fdb48146f971589653 hwloc-1.11.13.tar.bz2
+# From https://www.open-mpi.org/software/hwloc/v2.4/
+sha256 392421e69f26120c8ab95d151fe989f2b4b69dab3c7735741c4e0a6d7de5de63 hwloc-2.4.1.tar.bz2
# Locally computed
-sha256 a4494b7765f517c0990d1c7f09d98cb87755bb6b841e4e2cbfebca1b14bac9c8 hwloc-1.11.13.tar.bz2
-sha256 c1816ed2da6aea779c4f27352f807c8bbaf545c2843d7b2ae818e1d529028821 COPYING
+sha256 d79a936a42f3c6cb7c8375a023d43f4435f4664d3a5a2ea6b4623cff83c7fc06 COPYING
#
################################################################################
-HWLOC_VERSION_MAJOR = 1.11
-HWLOC_VERSION = $(HWLOC_VERSION_MAJOR).13
+HWLOC_VERSION_MAJOR = 2.4
+HWLOC_VERSION = $(HWLOC_VERSION_MAJOR).1
HWLOC_SOURCE = hwloc-$(HWLOC_VERSION).tar.bz2
-HWLOC_SITE = http://www.open-mpi.org/software/hwloc/v$(HWLOC_VERSION_MAJOR)/downloads
+HWLOC_SITE = https://download.open-mpi.org/release/hwloc/v$(HWLOC_VERSION_MAJOR)
HWLOC_LICENSE = BSD-3-Clause
HWLOC_LICENSE_FILES = COPYING
HWLOC_DEPENDENCIES = host-pkgconf
HWLOC_INSTALL_STAGING = YES
HWLOC_SELINUX_MODULES = hwloc
+# ac_cv_prog_cc_c99 is required for BR2_USE_WCHAR=n because the C99 test
+# provided by autoconf relies on wchar_t.
+HWLOC_CONF_ENV = ac_cv_prog_cc_c99=-std=gnu99
+
HWLOC_CONF_OPTS = \
--disable-opencl \
--disable-cuda \
HWLOC_CONF_OPTS += --disable-pci
endif
-ifeq ($(BR2_PACKAGE_NUMACTL),y)
-HWLOC_CONF_OPTS += --enable-libnuma
-HWLOC_DEPENDENCIES += numactl
-else
-HWLOC_CONF_OPTS += --disable-libnuma
-endif
-
$(eval $(autotools-package))