kphp icon indicating copy to clipboard operation
kphp copied to clipboard

Incorrect library directories when building on RPM-based Linux distributions

Open lRespublica opened this issue 2 months ago • 0 comments

I'm building kphp for ALT Linux (which is an rpm-based distribution), and after building the libraries are not installed correctly.

libtlo_parsing is installed into /usr/lib directory. libvk-flex-data is installed into /usr/usr/lib (I do not user standart CMAKE_INSTALL_PREFIX. Its value is /usr, in my case.)

Both options do not meet the standards for installing software on the system. Libraries must be installed in the lib64 directory. In this case, preferably in ${CMAKE_INSTALL_PREFIX}/lib64

As far as I understand from the source code, the names of the installation directories are simply hardcoded in the cmake files. For my build I changed these values, but doing this every time is not good practice.

This problem is relevant not only for ALT Linux, but also for any other RPM-based distribution (Fedora, RHEL, OpenSuse).

lRespublica avatar May 09 '24 12:05 lRespublica