... | ... | @@ -92,10 +92,12 @@ to you `mk/build.mk` file (which hosts all your other build system config prefe |
|
|
Running a command like `export MACOSX_DEPLOYMENT_TARGET=10.7` before building will imply setting `-mmacosx-version-min=version` for clang and friends, and will result in a GHC build that can run on any OS X `>= version` (where version can be older than the host machine's OS X version).
|
|
|
|
|
|
|
|
|
Note that this the deployment target does not affect library availability. This means that builds performed on Sierra (macOS 10.12) systems (which have `clock_gettime`), will be incompatible with previous OS X releases (see [\#12858](https://gitlab.haskell.org//ghc/ghc/issues/12858)). If you need to build a binary distribution on Sierra which is compatible with previous releases, it's best to simply disable `clock_gettime` support at configuration time,
|
|
|
Note that this the deployment target does not affect library availability. This means that builds performed on Sierra (macOS 10.12) systems (which have `clock_gettime`), will be incompatible with previous OS X releases (see [\#12858](https://gitlab.haskell.org//ghc/ghc/issues/12858)). If you need to build a binary distribution on Sierra which is compatible with previous releases, it's best to simply disable `clock_gettime` support at configuration time, such as by setting the environment variables as follows
|
|
|
|
|
|
```wiki
|
|
|
./configure ac_cv_func_clock_gettime=no
|
|
|
export MACOSX_DEPLOYMENT_TARGET=10.7
|
|
|
# Only Sierra onwards supports clock_gettime. See #12858.
|
|
|
export ac_cv_func_clock_gettime=no
|
|
|
```
|
|
|
|
|
|
## Other tools
|
... | ... | |