title: Cant compile c++ on OS X Big Sur, "ld: library not found for -lgcc_s.10.4"
body: <p>After upgrading my MacBook Pro to OS X 11.1 Big Sur, I am unable to get compilation of c++ programs using gcc to work.</p>
  <p>I am using CLion with CMake, and I get the following error when reloading the CMake configuration</p>
  <pre><code>ld: library not found for -lgcc_s.10.4
  </code></pre>
  <p>The things that I have tried are installing Xcode, it installed without error.</p>
  <p>I have tried to create a symlink as suggested here <a href="https://github.com/Paxa/fast_excel/issues/33" rel="nofollow noreferrer">https://github.com/Paxa/fast_excel/issues/33</a></p>
  <pre><code>$ cd /usr/local/lib
  $ sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.4.dylib
  </code></pre>
  <p>It appears that the library <code>libSystem.B.dylib</code> is not present. Some sites mention that the libraries starting with Big Sur reside in some &quot;shared cache&quot;, which I have no idea of what it is and how to access it, let alone make ld access it on its own.</p>
  <p>Any suggestions on how to solve this are very welcome. Thank you!</p>