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

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