Support for the Linux x86-64 32-bit ABI (x32-abi)
Continuing the discussion from previous bug 0015994.
Currently CMake assumes library files can be located in
${CMAKE_INSTALL_PREFIX}/lib{64}
, or otherwise on the system in/lib{64}
,/usr/lib{64}
etc. This isn't the case with x32-abi, where library directories are postfixed withx32
, for example:${CMAKE_INSTALL_PREFIX}/libx32
This results in CMake modules being unable to locate their resources, including failure during the configuration of CMake itself after initial bootstrap if
CMAKE_INSTALL_PREFIX
and individual*_DIR=/usr/libx32/cmake/*
variables aren't manually provided.
Generally it would be ideal if CMake was path-agnostic, instead of having the search paths hardcoded. There already exists GNUInstallDirs that handles some of it, after all, and one could make use of /etc/ld.so.conf
too.