title: Statically linking against LAPACK
body: <p>I'm attempting to do a release of some software and am currently working through a script for the build process. I'm stuck on something I never thought I would be, statically linking LAPACK on x86_64 linux. During configuration <code>AC_SEARCH_LIB([main],[lapack])</code> works, but compilation of the lapack units do not work, for example <code>undefiend reference to 'dsyev_'</code> --no lapack/blas routine goes unnoticed.</p>
  
  <p>I've confirmed I have the libraries installed and even compiled them myself with the appropriate options to make them static with the same results.</p>
  
  <p>Here is an example I had used in my first experience with LAPACK a few years ago that works dynamically, but not statically: <a href="http://pastebin.com/cMm3wcwF" rel="noreferrer">http://pastebin.com/cMm3wcwF</a></p>
  
  <p>The two methods I'm using to compile are the following,</p>
  
  <pre><code>gcc -llapack -o eigen eigen.c
  gcc -static -llapack -o eigen eigen.c
  </code></pre>