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

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