title: How to determine version of glibc (glibcxx) binary will depend on?
body: <p>It's well known that glibc (and, as far as I know, glibstd++ also) uses symbol versioning mechanism. (For the details refer:  <a href="https://stackoverflow.com/questions/2856438/how-can-i-link-to-a-specific-glibc-version">How can I link to a specific glibc version</a>.)</p>
  
  <p>The question is how to determine exact versions of GLIBC and GLIBCXX will be chosen by linker for names from libc and libstdc++? For example, how to get something like this:</p>
  
  <pre><code>time -&gt; time@GLIBC_2_5
  ...
  gethostbyname -&gt; gethostbyname@GLIBC_2_3
  </code></pre>
  
  <p>Why do we need this? It seems to me that it can be useful if you want to minimize required versions of glibc/libstdc++.</p>