title: Linking library syntax with gfortran
body: <p>In C++, if I want to do a custom compile (meaning to link additional libraries), I usually do the following:</p>
  
  <pre><code>g++ filename -o outputname -I/include_libraries_here -L/link_libraries_here -rpath=path_for_dynamic_linking_here 
  </code></pre>
  
  <p>How would I go about to do a similar thing using gfortran.  I tried:</p>
  
  <pre><code>gfortran filename -o outputname -I/include_libraries_here -L/link_libraries_here -rpath=path_for_dynamic_linking_here 
  </code></pre>
  
  <p>So far, the syntax -I and -L work, suggesting that I managed to link and include the libraries.  However, it seems that gfortran does not recognize rpath as a valid command.  </p>
  
  <p>Please let me know and thank you. </p>