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

    <tr>
        <th>Summary</th>
        <td>
            llvm-toolchain-darwin does not support `-s`
        </td>
    </tr>

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

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

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

<pre>
    Hi, I am doing slightly odd things with cross compilation and Bazel.

Currently, Bazel insists on calling `libtool` with `-static -s` for static libraries / archives.

While mostly a drop-in replacement, the current `llvm-libtool-darwin` lacks support for `-s` which in the OSX man page is given as the following:

```
       -s Produce  the  preferred type of table of contents, which results in faster link editing when linking with the archive.  The order of
              the table of contents is sorted by symbol name.  The library member name of this type of table of contents is ``__.SYMDEF  SORTED''.
              This  type  of table  of contents can only be produced when the library does not have multiple members that define the same symbol.
              This is the default.
```

If this is what `llvm-libtool-darwin` does naturally (since it is the default), could this be a compatibility NOP flag?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0lE-P2zYQxT8NfRnYkGnZXh10yGbjNod2g-4CbU8B_4ykaShSIEdrqJ--IOXFJmliGLJFSu_95g1JlRL1HrEVx3txfNiomYcQ218i9vfhumDc6GCX9lcS8j18BDWCDeR7SI76gd0CwVrggXyf4Eo8gIkhJTBhnMgppuBBeQv36l90O1E9iOrden0_x4ie3ZKFyzSQT5Q4QfBglHPZRpwqR5pDcOJUrQbiVG0TKyYD25RHuxDhNuBIRxUJEwh5ARXNQC-YvvH9cyCHMIaU4RXYGKYteYg4OWVwRM8ZiAcEsxIWBvcybm8gW6vilXx2dsp8SZDmaQqRC0eBK6gDmQHIF6XHp79gVB4m1SNQgp5e0INKZbILzoUr-V4c3n0NKk7V7VtuYf1sE3yKwc4GobwNU8QOY0QLvEwIoQNW2pU_JnhGzykXtPJETLPjlLk6lRgjOPJfAC1xTvs6oC8j5SaHnS1uMe4AngeEEC1GCN0rarNy5Qf_Z5xrTSEyWtALpGXUwYFX46vW2q4FRhw1xjJTChgo_byaLLoG8_nz7unv3x4-XACeHv94_vAg5FnI8-47tOcst-q9CX6jaJSH4N0CGmFa07VrGPwVpQ2YwAeGQb0gjLNjmvJSKvC5l4rBYkcey2spV7PW_EMiWttvsVOz490Pm75eP94ioQTXbPLzBbkiKp6jcm4BIe8SeYNA_J2dkE1eFSbMzq7iGkGVbauYNDniBX5__ASdU704XDa2Pdjm0KgNtvvT-bhv6ro-boa21nhCc9R1XevjHXZmr5vjWTWmw6NsumZDrazkodof9vumPsvjDu90rbq9sapuqnOnRV3hqMjtck27EPsNpTRje6rqQ7VxSqNL5XSS0uMVyqSQMh9WsS056LlPoq5cPjzeVJjY4fpATskMivwtqrdWvu7d1327maNrB-Yp5d0oL0JeeuJh1jsTRiEvWe72s51i-AcNC3kpTEnIS2H-LwAA__9lp8Ec">