8017538: Clang support broke slowdebug build for i586
authortwisti
Mon, 24 Jun 2013 17:47:25 -0700
changeset 18447 1481a04c99e2
parent 18430 f31b754d698b
child 18448 103f9765cbbe
8017538: Clang support broke slowdebug build for i586 Reviewed-by: kvn
hotspot/make/linux/makefiles/gcc.make
--- a/hotspot/make/linux/makefiles/gcc.make	Fri Jun 21 00:59:12 2013 -0700
+++ b/hotspot/make/linux/makefiles/gcc.make	Mon Jun 24 17:47:25 2013 -0700
@@ -350,9 +350,9 @@
   ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
       ifeq ($(USE_CLANG), true)
         # Clang doesn't understand -gstabs
-        OPT_CFLAGS += -g
+        DEBUG_CFLAGS += -g
       else
-        OPT_CFLAGS += -gstabs
+        DEBUG_CFLAGS += -gstabs
       endif
   endif
   
@@ -365,9 +365,9 @@
     ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
       ifeq ($(USE_CLANG), true)
         # Clang doesn't understand -gstabs
-        OPT_CFLAGS += -g
+        FASTDEBUG_CFLAGS += -g
       else
-        OPT_CFLAGS += -gstabs
+        FASTDEBUG_CFLAGS += -gstabs
       endif
     endif