title: Difference between -shared and -Wl,-shared of the GCC options
body: <p>I know <code>-Wl,-shared</code> is a option of <strong>ld</strong>. I've seen some person compile like this,</p>
  
  <pre><code>$ gcc -shared -Wl,-soname,libtest.so -o libtest.so *.o
  </code></pre>
  
  <p>And some person like this</p>
  
  <pre><code>$ gcc -Wl,-shared -Wl,-soname,libtest.so -o libtest.so *.o
  </code></pre>
  
  <p>So, I want to know if there is some difference between <code>-shared</code> and <code>-Wl,-shared</code>.</p>
  
  <p>Thanks.</p>