Blame SOURCES/jdk8223219-fstack-protector-hotspot.patch

7a39b1
diff --git openjdk.orig/hotspot/make/bsd/makefiles/gcc.make openjdk/hotspot/make/bsd/makefiles/gcc.make
7a39b1
--- openjdk.orig/hotspot/make/bsd/makefiles/gcc.make
7a39b1
+++ openjdk/hotspot/make/bsd/makefiles/gcc.make
7a39b1
@@ -190,7 +190,7 @@
7a39b1
 CFLAGS += -fno-exceptions
7a39b1
 ifeq ($(USE_CLANG),)
7a39b1
   CFLAGS += -pthread
7a39b1
-  CFLAGS += -fcheck-new -fstack-protector
7a39b1
+  CFLAGS += -fcheck-new
7a39b1
   # version 4 and above support fvisibility=hidden (matches jni_x86.h file)
7a39b1
   # except 4.1.2 gives pointless warnings that can't be disabled (afaik)
7a39b1
   ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"
7a39b1
diff --git openjdk.orig/hotspot/make/linux/makefiles/gcc.make openjdk/hotspot/make/linux/makefiles/gcc.make
7a39b1
--- openjdk.orig/hotspot/make/linux/makefiles/gcc.make
7a39b1
+++ openjdk/hotspot/make/linux/makefiles/gcc.make
7a39b1
@@ -150,7 +150,7 @@
7a39b1
 CFLAGS += -fno-exceptions
7a39b1
 CFLAGS += -D_REENTRANT
7a39b1
 ifeq ($(USE_CLANG),)
7a39b1
-  CFLAGS += -fcheck-new -fstack-protector
7a39b1
+  CFLAGS += -fcheck-new
7a39b1
   # version 4 and above support fvisibility=hidden (matches jni_x86.h file)
7a39b1
   # except 4.1.2 gives pointless warnings that can't be disabled (afaik)
7a39b1
   ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"
7a39b1
diff --git openjdk.orig/hotspot/make/solaris/makefiles/gcc.make openjdk/hotspot/make/solaris/makefiles/gcc.make
7a39b1
--- openjdk.orig/hotspot/make/solaris/makefiles/gcc.make
7a39b1
+++ openjdk/hotspot/make/solaris/makefiles/gcc.make
7a39b1
@@ -75,7 +75,6 @@
7a39b1
 CFLAGS += -fno-exceptions
7a39b1
 CFLAGS += -D_REENTRANT
7a39b1
 CFLAGS += -fcheck-new
7a39b1
-CFLAGS += -fstack-protector
7a39b1
 
7a39b1
 ARCHFLAG = $(ARCHFLAG/$(BUILDARCH))
7a39b1