common/autoconf/jdk-options.m4
changeset 34495 b8008470cbd0
parent 34493 c68e0ab807d8
child 35010 d0e2516cc2a2
child 34596 e8328ce5b64e
--- a/common/autoconf/jdk-options.m4	Fri Dec 11 14:20:39 2015 +0100
+++ b/common/autoconf/jdk-options.m4	Fri Dec 11 17:15:48 2015 +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