[CMake] HowTo build one Linux binary set for all platforms?

Matt England mengland at mengland.net
Tue Apr 18 20:47:02 EDT 2006


At 4/18/2006 11:56 AM, Brad King wrote:
>I think it's a Mandrake 10 box.
>
>There is a bit of a trick needed for CMake due to support for loaded 
>commands.  We link statically against everything but libc and libdl.  In 
>order to work with the system libc on every other machine you need to 
>build with the oldest glibc you can find.  We used to use an old glibc 2.0 
>system to build binaries but that old machine died so now we use a glibc 
>2.3 system.  A few years ago that may have been a problem but no one has 
>complained yet about needing glibc 2.3.  For the few people that have such 
>old systems they can build from source.

More excellent info, thanks again.

Like my project, CMake appears to be a C++ based one.  Does one need to add 
a c++ lib to the above list (along with libc and libdl) to the list of 
special libs?  Presumably not, but I'm checking just to make sure.

-Matt 



More information about the CMake mailing list