diff options
Diffstat (limited to 'nextstep')
| -rw-r--r-- | nextstep/INSTALL | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nextstep/INSTALL b/nextstep/INSTALL index 64f8f8fcf70..726a897c371 100644 --- a/nextstep/INSTALL +++ b/nextstep/INSTALL | |||
| @@ -45,6 +45,35 @@ files will be installed under whatever 'prefix' is set to (defaults to | |||
| 45 | require 'sudo' for "make install"). | 45 | require 'sudo' for "make install"). |
| 46 | 46 | ||
| 47 | 47 | ||
| 48 | Targeting different macOS versions | ||
| 49 | ---------------------------------- | ||
| 50 | |||
| 51 | The Emacs build process automatically enables or disables macOS | ||
| 52 | features according to the version of macOS it is being built on. It | ||
| 53 | is possible to override this automatic configuration if you are | ||
| 54 | targeting a different version of macOS, or wish to build one | ||
| 55 | executable that is able to enable or disable features at run-time. | ||
| 56 | |||
| 57 | To build a version compatible with an older version of macOS use this | ||
| 58 | flag: | ||
| 59 | |||
| 60 | -DMAC_OS_X_VERSION_MIN_REQUIRED=x | ||
| 61 | |||
| 62 | and to build for a newer version of macOS: | ||
| 63 | |||
| 64 | -DMAC_OS_X_VERSION_MAX_ALLOWED=x | ||
| 65 | |||
| 66 | For example, to enable run-time checks for features available between | ||
| 67 | macOS 10.6, and 10.12 inclusive: | ||
| 68 | |||
| 69 | ./configure --with-ns CFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=1060 \ | ||
| 70 | -DMAC_OS_X_VERSION_MAX_ALLOWED=101200 -g3 -O2" | ||
| 71 | |||
| 72 | The macOS version numbers are formatted as 10x0 for macOS up to 10.10, | ||
| 73 | and 10xx00 for macOS 10.10 and above. A full list is provided in | ||
| 74 | /usr/include/AvailabilityMacros.h. | ||
| 75 | |||
| 76 | |||
| 48 | Installation | 77 | Installation |
| 49 | ------------ | 78 | ------------ |
| 50 | 79 | ||