title: How can I change the default search paths in GCC?
body: <p>We have one build machine which has some static libraries at unusual paths, and gcc doesn't find them when via the <code>-l</code> option, all other build machines run fine. But it seems this one configured incorrectly or something.</p>
  
  <p>The solutions we have tried:</p>
  
  <ul>
  <li>Check the host name of the build machine in build script and add the <code>-L</code> command line option if it matches name the problematic build machine (very ugly).</li>
  <li>Print the list of search dirs using the <code>-print-search-dirs</code> option
  and symlink the problematic library into the first one (too hackish).</li>
  </ul>
  
  <p>What I would like to do is simply add an extra path to search paths system wide to the gcc. </p>
  
  <p>Is there a way to change/configure the <strong>default</strong> library search paths in GCC? Is there a config file where the list of the defaults are stored?</p>