title: How can I get boost to compile for an earlier deployment target on OSX?
body: <p>this question has been asked before, but none of the answers seem to be currently working.. whether that's because they are incomplete, or things have changed, I don't know.</p>
  
  <p>I build my code for a deployment target of 10.7 (my clients use their machines for music production, so they often prefer to stick with what they know works rather than updated with every new OS release).</p>
  
  <p>I'm using boost.</p>
  
  <p>So when I buid I get a bunch of warnings</p>
  
  <pre><code>ld: warning: object file (/usr/local/lib/libboost_filesystem.a(path.o)) was built for newer OSX version (10.10) than being linked (10.7)
  ld: warning: object file (/usr/local/lib/libboost_system.a(error_code.o)) was built for newer OSX version (10.10) than being linked (10.7) 
  </code></pre>
  
  <p>and so on.</p>
  
  <p>So, I want to build boost (version 1.58 currently, unfortunately cmake is usually a couple of versions behind in what it can find) for a deployment target of 10.7</p>
  
  <p>It seems the magic instruction is </p>
  
  <p>macosx-version-min=10.7</p>
  
  <p>except I can't make it work.</p>
  
  <pre><code>./bootstrap.sh
  sudo ./b2 -a macosx-version-min=10.7 install 
  </code></pre>
  
  <p>Just doesn't do it, nor do any of the other things I've tried (I'm not familar with how b2 works, so I'm grasping in the dark).</p>
  
  <p>I expect I'm missing something simple, but some help would be much appreciated</p>
  
  <p>regards</p>
  
  <p>Jon</p>