<div dir="ltr">After some deep investigation (including reading the clang source), turns out the easiest way is to just set an environment variable for the duration of the GHC configure/build sequence:<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">

<div><div><font face="courier new, monospace">export MACOSX_DEPLOYMENT_TARGET=10.7</font></div></div></blockquote><div><br></div>​Will "do the right thing" in all contexts throughout the build without needing to thread command options through.<div>

<br></div><div>I've tested this and it works.</div><div><br></div><div>It does raise the issue of should set it as far back as 10.6?</div><div><br></div><div>- Mark</div></div>