Athena L.M.<p>Okay as could be predicted turns out the very easy and obvious solution does not work. A friend pointed me to a mailing list discussion where it was noted that QBE, <code>harec</code>'s backend, currently lacks support for generating position-independent code (PIC), which is required to produce a shared library for fairly obvious reasons.</p><p>If anyone following me happens to know how to work with compiler backends and is inclined to climb the mountain to implement PIC support, you would be saving many distro maintainers many headaches and possibly mitigating a significant amount of future security issues by making it easier to distribute the patches.</p><p><a href="https://solarpunk.moe/tags/qbe" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>qbe</span></a> <a href="https://solarpunk.moe/tags/hare" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>hare</span></a> <a href="https://solarpunk.moe/tags/harelang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>harelang</span></a> <a href="https://solarpunk.moe/tags/compilers" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>compilers</span></a></p>