title: How do I statically link SDL to my a.out on Linux (Ubuntu)
body: <p>Let's take this snippet: </p>
  
  <pre><code>#include "SDL/SDL.h" 
  int main( int argc, char* args[] ) 
  { 
      SDL_Init( SDL_INIT_EVERYTHING ); 
      SDL_Quit();
      return 0; 
  }
  </code></pre>
  
  <p>Compile command would be:</p>
  
  <pre><code>g++ -o myprogram mysource.cpp -lSDL
  </code></pre>
  
  <p>How can I 'include' SDL in my executable so that another enduser can execute it at once (without installing SDL or even recompiling my source) ?</p>