#1717: hwloc: lnuma & lltdl *really* required? ------------------------------------+--------------------------------------- Reporter: zachetie@… | Owner: Type: defect | Status: reopened Priority: minor | Milestone: Component: EinsteinToolkit thorn | Version: development version Resolution: | Keywords: ------------------------------------+---------------------------------------
Comment (by rhaas):
There is a similar problem with numa lib, static linking and self-build hwloc. Currently detect.sh only claims hwloc as a required library (HWLOC_LIBS=hwloc) when building hwloc, however hwloc's configure script will find libnuma and use it, which makes numa a required library ''in that case'' only. A workaround right now is to add numa to LIBS but this has to be done by the user since whether numa is required depends on both the software installed on the machine as well as hwloc's configure script.
Right now there seems to be no good way to fix this, since detect.sh sets HWLOC_LIBS before configure runs so cannot know what configure will do. As far as I can tell, the only way to fix this is to run the ExternalLibraries configure script in detect.sh but then defer building to build.sh.