Hi,
I compile some c++ on 10.12 with xc8 which uses boost. It's supposed to run starting 10.9, so I used the current 10.12 SDK + deployment target 10.9.
(-mmacosx-version-min=10.9)
However, the program runs on 10.12 only, because it tries to lazy link clock_gettime, which was introduced in 10.12.
My code compiles against the 10.11 SDK unchanged, which is my workaround right now.
So:
* I thought a deployment_target would avoid such situations. Is this wrong? What precisely does it do then?
* Do I need to build against a old 10.x SDK if I want to have programs running on old 10.x?
Thanks.