title: CMAKE DSO linking
body: <p>I'm totally new to cmake. After an svn update (but also to binutils and I suspect this is causing the problem), I get an error (I successfully compiled and used the program before)</p>
  
  <pre><code>Linking CXX executable gmsh
  /usr/bin/ld: /usr/local/lib/liblapack.a(dgesvd.o): undefined reference to symbol '_gfortran_concat_string@@GFORTRAN_1.0'
  /usr/bin/ld: note: '_gfortran_concat_string@@GFORTRAN_1.0' is defined in DSO /usr/lib/libgfortran.so.3 so try adding it to the linker command line
  /usr/lib/libgfortran.so.3: could not read symbols: Invalid operation
  collect2: error: ld returned 1 exit status
  make[2]: *** [gmsh] Error 1
  make[1]: *** [CMakeFiles/gmsh.dir/all] Error 2
  make: *** [all] Error 2
  </code></pre>
  
  <p>Maybe it's related to this <a href="http://fedoraproject.org/wiki/UnderstandingDSOLinkChange" rel="nofollow">Fedoraproject DSO Change</a>?</p>
  
  <p>I have an up-to-date archlinux (binutils-2.23-1). </p>
  
  <p>I tried to edit lines in the <code>ccmake .</code> menu. After hitting [c] the original options are restored (so I cannot add <code>/usr/lib/libgfortran.so.3</code> to the <code>GMSH_EXTERNAL_LIBRARIES</code> variable in order  <code>[g] generate</code> the new Makefiles). </p>
  
  <p>I also tried adding some options which were recommended in the <em>cmake irc chat</em>, but it eventually didn't work.</p>
  
  <pre><code> cmake . -DCMAKE_LINK_FLAGS=-Wl,--add-needed
  </code></pre>
  
  <p>or</p>
  
  <pre><code> cmake . -DCMAKE_LINK_FLAGS=-lgfortran
  </code></pre>
  
  <p>Resulting in the same error. What can I do?</p>
  
  <p>Additional information: <code>make VERBOSE=1</code> <a href="http://pastebin.com/xhbzasvb" rel="nofollow">pastebin link</a></p>