title: How do I compile on linux to share with all distributions?
body: <p>I compiled a PHP extension on Fedora Core 12, but when I send it to someone using CentOS they get the error: "ELF file OS ABI invalid"</p>
  
  <p>I'm not sure what causes this running file provides the following info:
  ELF 64-bit LSB shared object, AMD x86-64, version 1 (GNU/Linux), not stripped</p>
  
  <p>An extension that loads fine provides the following from file:
  ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped</p>
  
  <p>So it seems I need to generate a SYSV type file for some distributions, instead of a GNU/LINUX file, no idea how though.  Any pointers?</p>
  
  <p>Also should I be statically linking?</p>