[CMake] Link to local glibc

Michele Portolan michele.portolan at grenoble-inp.fr
Tue Mar 7 11:56:49 EST 2017


Hello,

I build on a Ubuntu machine (kernel 4.4.0-64-generic), but I need my 
program to be executed on an old Cento 5.8 (kernel 2.6.18). I tried 
compiling with "-static" to have static linking, but when I try to 
execute I get "ERROR: Kernel too old!"

I therefore locally compiled a glibc with support for kernel 2.6.18 ... 
but how can I have Cmake use it instead of the system one?

Thanks,


Michele



More information about the CMake mailing list