title: Build gcc with adding debugging symbol to libgomp.so
body: <p>I'm studying the implementation detail of OpenMP. I'm trying to look inside the source code of libgomp.so. I have source code of <code>gcc</code> and I know how to build it. But I want to add debugging symbol to libgomp.so, such that, command below has effect.</p>
  
  <pre><code>nm libgomp.so
  </code></pre>
  
  <p>So I've just generated <code>Makefile</code> to build gcc with <code>configure</code>. I think adding debugging symbol to libgomp.so is related to <code>Makefile.in</code>, <code>Makefile.am</code> inside the libgomp directory (subdirectory of gcc). But the text is too long and there are so many flags. I want to know where to modify. Please help me to figure it out.</p>
  
  <p>Actually I'm quite newbie to this system. I studied <code>Makefile</code> several times, but <code>Makefile.in</code>, <code>Makefile.am</code>, <code>configure</code>, etc. are what I first met this time.</p>
  
  <p>I've just found candidate in <code>libgomp.info</code>, there are explanation of some environment variables. There is</p>
  
  <p><code>* GOMP_DEBUG::           Enable Debugging output</code></p>
  
  <p>But I'm not sure how to use it.</p>