<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/54940>54940</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            llvm 14.0.1 fails to build shared objects (build issue - DYLIB)
        </td>
    </tr>

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

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

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

<pre>
    85e2731aa3d440384067001a9a460a889037eb11 describes the bug building flang and not working with DYLIB. With updating our LE package from 13.0.1 to 14.0.1 we need to use `BUILD_SHARED_LIBS=ON` as the `DYLIB` options are not working.
- https://github.com/LibreELEC/LibreELEC.tv/pull/6375

Doing a build of llvm-13.0.1 with 
-DLLVM_BUILD_LLVM_DYLIB=ON
-DLLVM_LINK_LLVM_DYLIB=ON
correctly builds the .so files.

Current workaround is to use the NOT recommended option with llvm-14.0.1
-DBUILD_SHARED_LIBS=ON
to build the .so files.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9U1Fv2yAQ_jX2C4qFDY7tBz-kdaZV81pp7TbtKYKAY1ZsIsCN-u93hlbLpG2SDccdfPd9d8CNeG3rUhYVyRkjglJMaoq3FcY5axjdYlbXDSaV5HmOhHRHq7h0yI8S8eUEv9JCzSc0aAYjmwWajUcXY59X70X5EXU_-rubDH1f7eUsmF8jZrGo36MzOz6zk0SDNRPKSYazHHmDchqsi0SzlGL1LE6iZItvvt713eHx4-7LvjsA7GNCuod7CCAWSYEZ8q0uc_bKzA4xK69ZZQnuErzboNH7s0vILik-wHcCfgvPjmaCRa-4lft-f3ttZ_4FludFa5i2pCojUBw7s8pisSLIDEjrl2nzJinU4S1t1_ffPh-ikGBGvkHH9Y7-7v7T3zccjbXy6PVrTBaFZ86gQWnpsmtWtwtsnaN0Zs0C_VHuvZ7rsfuHJwRgZprkLKDUsWaRcFQQWvHO7B_1D1FAjeL_pJOKloiGNCz1ymvZrqjvDR6Y0oFOPOhGaBVw4D9BnkNJUUe_cm6RaBNvUlI06WJ1-5_urSneps3ZmhUNlgHFgVHShuJ0bBvJ6xKzqsKMlDWtJa-GhjZEDKzgNRepZlxq1yYlJC1meYlEwE7KLlVtgYsC03yLt6QkeTYwVlaNPAp4KwWlLKFYTiAwW3lkxp5SG8Rv4OE4CGrlvPsdZM6pE1z3kA7w2eJHY9tRKs_ZMqUhdxu4_wIu2iix">