wiki:LinuxBinaryCompatibility

Version 1 (modified by flip, 10 years ago) (diff)

--

Notes about Creating C/C++ Binaries that Run on Different Flavors of Linux

After a little reading, what I've learned so far is --

  • This isn't simple
  • Static linking helps
  • It's probably helpful to compile with the oldest version of Linux & gcc that one intends to support.

Here's some articles/conversations on the topic -- http://www.pixelbeat.org/programming/linux_binary_compatibility.html http://ask.slashdot.org/article.pl?sid=05/11/24/2230256&threshold=1 http://www.linux.org/docs/ldp/howto/Program-Library-HOWTO/shared-libraries.html http://stackoverflow.com/questions/1771366/binary-compatibility-between-linux-distributions

Here's a tool that might help -- http://ldn.linuxfoundation.org/lsb/check-your-app

Here's a list of distros certified for compliance with the Linux Standard Base -- http://www.linuxfoundation.org/lsb-cert/productdir.php?by_lsb