title: libtool .la library file wrong path
body: <p>I'm having a similar problem to this <a href="https://stackoverflow.com/questions/22545598/relative-or-independent-paths-in-libtool-la-file">unanswered question</a>.  I'm submitting my code to a build-system to use its g++ binary.  However, the build is moved to a temporary path with a randomly generated name (e.g. <code>/temp-build/1ab3fDg/...</code>), while g++ itself is not recompiled and the .la not refreshed (not feasible).  Thus, when libtool looks for the libstdc++.so, it looks in the <code>/temp-build/1ab3fDg/libstdc++.la</code> file to get the path to it and sees:</p>
  
  <pre><code>libdir=/temp-build/J2213bgB/.../
  </code></pre>
  
  <p>which is the directory of whatever random path gcc was originally compiled in.  The actual .so is in the same directory as the .la file (<code>/temp-build/1ab3fDg</code>), but libtool is following the incorrect libdir path.</p>
  
  <p>I was wondering if there was a way to tell libtool to ignore the .la file and look for libstdc++ in a directory specified by me.  Alternatively, is there any other possible solution to this problem?  I'm using autoconf/automake to generate the Makefiles.</p>