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

    <tr>
        <th>Summary</th>
        <td>
            -static-libstdc++ unused on macOS
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          h-2
      </td>
    </tr>
</table>

<pre>
    We are building mac binaries with llvm17 installed from homebrew. The built binaries depend on `/opt/homebrew/opt/llvm/lib/c++/libc++.1.dylib`. 
We would like the binaries to not depend on the presence of homebrew, therefore we added `-static-libstdc++` to the build, but this is ignored:
```
clang++: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
```

On Linux this works. What are we doing wrong?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskktvpTwMhn9N2FigEG5lwaL9Klaf1MWMdNa5uJBpSFAuw_TfjwI90y4qWedgzGs_Tl4egl4s4kS6J9I9FzzF1flpLVkhnHqfbgjcI4ikjdJ2gY1LENpyrzHAoeMKxvze6gG0DZEbgwpevdtgdRsKj0cFP9dLHj91Cne0CpwF0lPCZrdHwua75N-L3Dn_aUHYLAl7OiPnH0lVV-o9l3taAaHPhD7eEA6XjAKj3xBinn2fGh1YF78Mz9XdY0ArEdwrfAL8l2seX51HOBC4Uqgyaxkij1qWRosQ1R2pp7l3_NhTZblIEeKqA-RYrPOoSPN4IeadrzhTabhdPjo1j3Bwb7Vd8iP3S9rQRkg2BVSgks9XIN22a8OjdjZ_RdjwPRYbgHRP5e1Sl9JtG7eqNNpieW9Nuudvoa7fFwv_a5v-XKsczr-FCm4rj6cnDgTlMtDhXQaeCzU1amxGXuBUD7RtBvbQtsU6tR0KhlwIptQgxMNQD3xses4F7-VIm0JPjLKW1rStWdfSthqlVNiP8qGmsmYDkpbixrWpsicq55dCh5BwGvqx7QrDBZpwWpgxiwecRcJYdrSfsqYUaQmkpUaHGD67RB0NTt-e3_3Unc2mf_lRJG-mNcY95JtkM2HzouOaRCXd9sWtedju3S-U2cMnSSBsPkn_BgAA___G1hpl">