Skip to content
Permalink
Browse files
8264848: [macos] libjvm.dylib linker warning due to macOS version mis…
…match

8272700: [macos] Build failure with Xcode 13.0 after JDK-8264848

Reviewed-by: yan
Backport-of: 04fa1ed4d0d409bf9bd741297ca95c7f1b7a3e9f
  • Loading branch information
Vladimir Kempik committed Sep 13, 2021
1 parent 9a174b3 commit f75d51ee2f79a6212479f41f869613d580a91083
Showing 1 changed file with 11 additions and 1 deletion.
@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -105,6 +105,16 @@ AC_DEFUN([FLAGS_SETUP_ASFLAGS],
[
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
JVM_BASIC_ASFLAGS="-x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16"
# Fix linker warning.
# Code taken from make/autoconf/flags-cflags.m4 and adapted.
JVM_BASIC_ASFLAGS+=" -DMAC_OS_X_VERSION_MIN_REQUIRED=$MACOSX_VERSION_MIN_NODOTS \
-mmacosx-version-min=$MACOSX_VERSION_MIN"
if test -n "$MACOSX_VERSION_MAX"; then
JVM_BASIC_ASFLAGS+=" $OS_CFLAGS \
-DMAC_OS_X_VERSION_MAX_ALLOWED=$MACOSX_VERSION_MAX_NODOTS"
fi
fi
])

1 comment on commit f75d51e

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on f75d51e Sep 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.