<div dir="ltr"><div style>in rts/<a href="http://ghc.mk">ghc.mk</a>, I changed the rts/libs.depend rule to this:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div style># collect the -l and -L flags that we need to link the rts dyn lib. </div>
<div style>rts/libs.depend : $$(ghc-pkg_INPLACE)</div><div style> "$(ghc-pkg_INPLACE)" --simple-output field rts extra-libraries \</div><div style> | sed -E 's/([^ ]+)/-l\1/g' > $@</div>
<div style> "$(ghc-pkg_INPLACE)" --simple-output field rts library-dirs \</div><div style> | sed -E 's/([^ ]+)/-L\1/g' >> $@</div></blockquote><div><br></div><div style>seemed to work for me.</div>
<div style><br></div><div style>The old pattern used \+ with -e, which some sleuthing shows isn't supported on OS X.</div><div style><br></div><div style>HTH.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Apr 29, 2013 at 5:14 PM, Carter Schonwald <span dir="ltr"><<a href="mailto:carter.schonwald@gmail.com" target="_blank">carter.schonwald@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">How would i do this change locally on my local OSX build?<div>(i'm still getting familiar with ghc's build systems myself, so how to do the OS X only fix would be dandy :) )</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div class="h5">On Mon, Apr 29, 2013 at 2:32 PM, Nicolas Frisby <span dir="ltr"><<a href="mailto:nicolas.frisby@gmail.com" target="_blank">nicolas.frisby@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr">It seems this patch<div><br></div><div> 50e78dafd0cac5ca3b28ef71559899f179343ddf<br><div><br></div><div>changed some sed expressions in rts/<a href="http://ghc.mk" target="_blank">ghc.mk</a> that seem to be no longer firing on my Mac now. Mac has a different flavor of BSD sed and such.</div>
</div><div><br></div><div>The resulting contents of rts/libs.depend on my build attempt is</div><div><br></div><div><div>$ cat rts/libs.depend </div><div>m dl</div><div>/Users/nfrisby/Source/ghc-build-trees/vanilla/rts/dist/build</div>
</div><div><br></div><div>It's missing the -l and -L prefices that the sed commands are supposed to add.</div><div><br></div><div>I can hack around this on my Mac, but I'll leave the fix to someone with some portable sed fu.</div>
<div><br></div><div>Thanks.</div></div>
<br></div></div>_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>