[CMake] Link to local glibc

Marcel Loose loose at astron.nl
Tue Mar 7 13:53:44 EST 2017


Hi Michele,

This could become a painful exercise. You basically have two options:
1) Treat it as a cross-compilation project, or
2) Create a virtual machine running CentOS 5.8 and do the build there.
If I were you, I would go for the second option.

Cheers,
Marcel.

Op 07-03-17 om 17:56 schreef Michele Portolan:
> 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
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170307/09ed6378/attachment.sig>


More information about the CMake mailing list