common/autoconf/toolchain.m4

changeset 631
ab82853d3365
parent 621
ffb4d2e95140
child 637
52741ab7c601
child 650
c4901c0e0579
equal deleted inserted replaced
628:fd1a5574cf68 631:ab82853d3365
874 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 874 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
875 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS" 875 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS"
876 fi 876 fi
877 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 877 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
878 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE" 878 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE"
879 # Adding these macros will make it an error to link to mac APIs newer than OS version 10.7 879 # Setting these parameters makes it an error to link to macosx APIs that are
880 MACOSX_REQUIRED_VERSION=1070 880 # newer than the given OS version and makes the linked binaries compatible even
881 AC_SUBST(MACOSX_REQUIRED_VERSION) 881 # if built on a newer version of the OS.
882 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(MACOSX_REQUIRED_VERSION) -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(MACOSX_REQUIRED_VERSION)" 882 # The expected format is X.Y.Z
883 MACOSX_VERSION_MIN=10.7.0
884 AC_SUBST(MACOSX_VERSION_MIN)
885 # The macro takes the version with no dots, ex: 1070
886 # Let the flags variables get resolved in make for easier override on make
887 # command line.
888 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
889 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
883 fi 890 fi
884 if test "x$OPENJDK_TARGET_OS" = xbsd; then 891 if test "x$OPENJDK_TARGET_OS" = xbsd; then
885 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE" 892 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE"
886 fi 893 fi
887 if test "x$DEBUG_LEVEL" = xrelease; then 894 if test "x$DEBUG_LEVEL" = xrelease; then

mercurial