title: Force relative debug symbol path (maven-native-plugin)
body: <p>I am using the <em>native-maven-plugin</em> to compile a shared library on linux. I pass the compiler option <code>-g</code> to enable the debug symbol generation. Here is an excerpt from the POM:</p>
  
  <pre><code>            &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;native-maven-plugin&lt;/artifactId&gt;
              &lt;extensions&gt;true&lt;/extensions&gt;
              &lt;configuration&gt;
                  &lt;workingDirectory&gt;&lt;/workingDirectory&gt;
                  &lt;compilerStartOptions&gt;
                      &lt;compilerStartOption&gt;-g&lt;/compilerStartOption&gt;
                  &lt;/compilerStartOptions&gt;
                  &lt;linkerStartOptions&gt;
                      &lt;linkerStartOption&gt;-shared&lt;/linkerStartOption&gt;
                      &lt;linkerStartOption&gt;-g&lt;/linkerStartOption&gt;
                  &lt;/linkerStartOptions&gt;
                  &lt;sources&gt;
                      ...
                  &lt;/sources&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt; 
  </code></pre>
  
  <p>The <em>native-maven-plugin</em> alsways uses absolute paths to the source files when invoking <em>gcc</em>. This results in absolute paths in the debug symbols, too.
  The output of <code>nm -l libfoo.so</code> listing the debug symbols looks like:</p>
  
  <pre><code>0000797a T GetTickCount /home/myusername/projects/blabla/foo.c:3005
  </code></pre>
  
  <p>As you can see the source file path is absolute and includes my username and project structure. I don't want that. <strong>How can I change the debug symbols to relative path names?</strong></p>