Review Request: 8005879: Add -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 to builds on Mac (original) (raw)
Erik Joelsson erik.joelsson at oracle.com
Thu Feb 14 16:24:45 UTC 2013
- Previous message (by thread): [7u] Request for approval for CR 8007450 - Add build support for different man pages for OpenJDK and OracleJDK
- Next message (by thread): Review Request: 8005879: Add -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 to builds on Mac
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Here are a series of patches that adds the following to all native compile lines on macosx:
-DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -DMAC_OS_X_VERSION_MIN_REQUIRED=1070
This is needed to ensure that no macosx APIs newer than version 10.7 are used, and will cause compile time errors if they are.
Normally we would just lock down the build platform to avoid such problems, but in this case we can't. Newer mac hardware is not compatible with the older OS versions, forcing us to use newer OS versions on our build systems.
The hotspot changes will work independent of the rest and can go through rt as usual. The rest will go into build.
If a developer feels the need to disable this feature, the make variable MACOSX_REQUIRED_VERSION can be set to a different version (ex 1080) on the make command line.
http://cr.openjdk.java.net/~erikj/8005879/webrev.root.01/ http://cr.openjdk.java.net/~erikj/8005879/webrev.jdk.01/ http://cr.openjdk.java.net/~erikj/8005879/webrev.hotspot.01/
/Erik
- Previous message (by thread): [7u] Request for approval for CR 8007450 - Add build support for different man pages for OpenJDK and OracleJDK
- Next message (by thread): Review Request: 8005879: Add -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 to builds on Mac
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]