|
1 | 1 | # |
2 | | -# Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. |
| 2 | +# Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 | 4 | # |
5 | 5 | # This code is free software; you can redistribute it and/or modify it |
@@ -687,39 +687,18 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK], |
687 | 687 |
|
688 | 688 | # Additional macosx handling |
689 | 689 | if test "x$OPENJDK_TARGET_OS" = xmacosx; then |
690 | | - if test "x$TOOLCHAIN_TYPE" = xgcc; then |
691 | | - # FIXME: This needs to be exported in spec.gmk due to closed legacy code. |
692 | | - # FIXME: clean this up, and/or move it elsewhere. |
693 | | -
|
694 | | - # Setting these parameters makes it an error to link to macosx APIs that are |
695 | | - # newer than the given OS version and makes the linked binaries compatible |
696 | | - # even if built on a newer version of the OS. |
697 | | - # The expected format is X.Y.Z |
698 | | - MACOSX_VERSION_MIN=10.7.0 |
699 | | - AC_SUBST(MACOSX_VERSION_MIN) |
700 | | - |
701 | | - # The macro takes the version with no dots, ex: 1070 |
702 | | - # Let the flags variables get resolved in make for easier override on make |
703 | | - # command line. |
704 | | - CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" |
705 | | - LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" |
706 | | - elif test "x$TOOLCHAIN_TYPE" = xclang; then |
707 | | - # FIXME: This needs to be exported in spec.gmk due to closed legacy code. |
708 | | - # FIXME: clean this up, and/or move it elsewhere. |
709 | | -
|
710 | | - # Setting these parameters makes it an error to link to macosx APIs that are |
711 | | - # newer than the given OS version and makes the linked binaries compatible |
712 | | - # even if built on a newer version of the OS. |
713 | | - # The expected format is X.Y.Z |
714 | | - MACOSX_VERSION_MIN=10.9.0 |
715 | | - AC_SUBST(MACOSX_VERSION_MIN) |
| 690 | + # Setting these parameters makes it an error to link to macOS APIs that are |
| 691 | + # newer than the given OS version and makes the linked binaries compatible |
| 692 | + # even if built on a newer version of the OS. |
| 693 | + # The expected format is X.Y.Z |
| 694 | + MACOSX_VERSION_MIN=11.00.00 |
| 695 | + AC_SUBST(MACOSX_VERSION_MIN) |
716 | 696 | |
717 | | - # The macro takes the version with no dots, ex: 1070 |
718 | | - # Let the flags variables get resolved in make for easier override on make |
719 | | - # command line. |
720 | | - CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" |
721 | | - LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" |
722 | | - fi |
| 697 | + # The macro takes the version with no dots, ex: 1070 |
| 698 | + # Let the flags variables get resolved in make for easier override on make |
| 699 | + # command line. |
| 700 | + CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" |
| 701 | + LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" |
723 | 702 | fi |
724 | 703 |
|
725 | 704 | # Setup some hard coded includes |
|
0 commit comments