title: Build OpenSSL on Linux with -g for debugging
body: <p>I have a segfault coming from OpenSSL (specifically <code>SSL_read</code>) that I'd like to debug.  I think the best step to take here is to build the library myself with debug symbols so I can step into the function and see the command it's happening on.  It's not clear to me how to a) build the library myself and b) hack the makefile to give me the debug symbols.  Does anyone have experience doing this with this specific library, or have general guidelines on this sort of build and modify approach?</p>
  
  <p>Got this error:</p>
  
  <pre><code>./config -d
  Operating system: x86_64-whatever-linux2
  This system (debug-linux-x86_64) is not supported. See file INSTALL for details.
  </code></pre>
  
  <p>Not sure what to do here.  OS info:</p>
  
  <pre><code>$ cat /proc/version
  Linux version 3.2.0-24-virtual (buildd@yellow) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.31ubuntu5) ) #37-Ubuntu SMP Wed Apr 25 10:17:19 UTC 2012
  $ uname -srvio
  Linux 3.2.0-24-virtual #37-Ubuntu SMP Wed Apr 25 10:17:19 UTC 2012 x86_64 GNU/Linux
  </code></pre>