title: What does the gcc -R parameter do?
body: <p>I am trying to run an autotools configure script for the bson-cpp project, and it fails because it cannot determine what flags it needs to compile with boost_filesystem. A quick look at confg.log shows:</p>
  
  <pre><code>g++ -o conftest -g -O2   -pthread  -L/usr/local/lib -R/usr/local/lib -L/usr/local/libexec conftest.o -lboost_filesystem-mt  -lboost_system-mt &gt;&amp;5
  g++: error: unrecognized option '-R'
  </code></pre>
  
  <p>So, naturally, I tried to find out what the R option does, but I can't seem to find it documented anywhere. I've checked <a href="http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/Option-Summary.html#Option-Summary" rel="noreferrer">here</a> and <a href="http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html" rel="noreferrer">here</a> to no avail. What does the option do and how do I tell autotools not to use it?</p>