<div dir="ltr"><div class="" style="font-family:Consolas,&#39;Lucida Console&#39;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:13px">ghc places -lrt after -lpthread, causing pthread.a symbols to be missing when linking with -static<br>
</div><div class="" style="font-family:Consolas,&#39;Lucida Console&#39;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:13px"><br></div><div class="" style="font-family:Consolas,&#39;Lucida Console&#39;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:13px">
and just for kicks it generates a .o in /tmp that it deletes on exit, so i cant relink.  i think whoever added that owes me a beer.</div><div class="" style="font-family:Consolas,&#39;Lucida Console&#39;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:13px">
<br></div><div class="" style="font-family:Consolas,&#39;Lucida Console&#39;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:13px">so in one shell i did a </div><div class="" style="font-family:Consolas,&#39;Lucida Console&#39;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:13px">
<br></div><div class="" style="padding-left:7px;word-wrap:break-word"><font color="#000000" face="Consolas, Lucida Console, monospace"> while true; do cp /tmp/*/*.o .; done</font></div><div class="" style="font-family:Consolas,&#39;Lucida Console&#39;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:13px">
<br></div><div class="" style="font-family:Consolas,&#39;Lucida Console&#39;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:13px">and in another shell i ran the make command to grab that tmp file, then i was able to stick into the collect command i can grab from -optl--verbose and fully link the exe.</div>
</div>