--- old/common/autoconf/jdk-options.m4 2015-12-11 16:51:01.153778669 +0100 +++ new/common/autoconf/jdk-options.m4 2015-12-11 16:51:01.077775486 +0100 @@ -505,10 +505,12 @@ if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then - if test "x$OBJCOPY" = x; then - # explicit enabling of enable-debug-symbols and can't find objcopy - # this is an error - AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols]) + if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then + if test "x$OBJCOPY" = x; then + # enabling of enable-debug-symbols and can't find objcopy + # this is an error + AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols]) + fi fi ENABLE_DEBUG_SYMBOLS=true @@ -528,10 +530,12 @@ STRIP="" elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then - if test "x$OBJCOPY" = x; then - # explicit enabling of enable-debug-symbols and can't find objcopy - # this is an error - AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols]) + if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then + if test "x$OBJCOPY" = x; then + # enabling of enable-debug-symbols and can't find objcopy + # this is an error + AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols]) + fi fi ENABLE_DEBUG_SYMBOLS=true