<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylkk1v2zAMhn-NfCFiOIrjxAcfshQtCrTYTuuZtihHm2xl-miafz_a8db2sNMAw_qg9PLRS7ZOXZtHIXcDRH81Yw_RQZuMVYBg0fcEOLg0RnAarGk9ekMBLiae4Onp-7OQ90eLfE07Dy9mVO6yRJ_N-PCyulRlLoo7URwOYN2sElzy3aThRs4bl2wuzcF4ImjdG7TUYQo0bZH3zgfwZDEugNpiH_gsRlCLCr2ZEJnwJ4GoipX-9njkEYTcBzdQNANnRBvcLXo2HY9C1oCjmrderJDH1QrDaiRSpG45OJLDjf_2_zr-fSWjMmA4U2e06RamE74SjA6wiwktkNbUxYmCUS0hI47sghnh4Xjk9PlH7Ue9aN6kLi6xLz1FFuvoHJkJA6g0DNflxEfP41SrGPgRk8h1uY3WusvN4ck6nGswOE_vVeBaTd4PTk3PYIvdGD5hZarZqHpTY4aJz_qm9dSdYmDnyIcseducYjwHsTlwN_DXs2Rq884NvLD29c-wOnv3g-3gpQkhEcPeb2Vd7rJTU3YldUWtNtvNvqh2uK52VcXuKSX1Rut9ZrElGxqx_SKkHOkCswTPxfYu-38C08hCymJdrNdbuS9kXmrcqbWu122BVb2VoixoQGPzSSd3vs98M0u2idukLCy3X3gPYgim506agZkwmmipuSeMic339IuTR-Zdagtzw87N-I9OzGbgZqb9DerpOVE>52947</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Feature request: accept -fPIC and -Wl,--as-needed flags
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          brechtsanders
      </td>
    </tr>
</table>

<pre>
    I'm trying to build a large amount of libraries with LLVM/Clang for Windows with MinGW-w64.
A lot of sources won't build out of the box because of errors relating to flags that don't exist like `-fPIC` (sometimes also `-fpic`) and `-Wl,--as-needed flags`. 

On Windows these specific flags have no actual effect (at least not in GCC).

If these flags would get accepted as dummy flags for Windows targets, they would allow building a lot more sources without modifications.


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1kstu2zAQRb-G2gwsyPRTCy1cBwkMJGhXzXpIjmS2lOjyEcd_35GsNumigCA-hrxz5g6VN7fmJOSuhxRuduggeVDZOgMIDkNHgL3PQwLfgrMqYLAU4WrTGZ6fv78I-Xh0yNdaH-DVDsZf5-iLHZ5eF9ftuhTVg6gOB3B-Uok-Bz1q-IHzpjmbz1MwnQmUfwdFGnOkcYtC8CFCIIdpBmwddpHPYgIzq9C7jYkJfxKIbbVov52OPIKQ--h7SrbnjOiiv0cvVvMoZA04mGnr1Ql5XCwwLgYiQ-aegyMl3Pnv_6_D3yoZlQHjhbRtrZ6ZzvhGMHhAnTI6oLYlnUYKRnWEjDiwC3aAp-OR05eftU_trHmXuvrMvnSUWEzTJTETRjC572_zic-ep7FXKXIRo8htvo3O-evd4dE6nHrQ-0AfXeBejd733oxlsMV-iP9gFaZZmXpVY5FsctQ8EqbMCoF-ZYpJrA4zIEyuT47-x84iB9ecU7pEvsVPh7-O82dVat_zwrm3P8PiEvwP9o6XNkZOxJONrNe74tystJa1aYmURE3KmK1a7eRmv92rfWv2WDhU5GIjNl-ElANdYZLgudg8FLaRlZTVslouN3JfyXLd4s4s23qpKtzWGynWFfVoXTlylD50RWgmJJX5Rawrxy8tfgQxRttxlVM61sfMjoZGBdLnFNkNCrGYAJqpgN_4ySS_">