changeset 5845:0d5fbdb57253

8199552: Update to build scripts Reviewed-by: jwilhelm Contributed-by: magnus.ihse.bursie@oracle.com
author jwilhelm
date Thu, 07 Feb 2019 06:03:59 +0000
parents 7e4523af00b7
children 752c4ce59972
files make/bsd/makefiles/gcc.make make/linux/makefiles/gcc.make make/solaris/makefiles/gcc.make
diffstat 3 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/make/bsd/makefiles/gcc.make	Thu Feb 07 05:42:54 2019 +0000
+++ b/make/bsd/makefiles/gcc.make	Thu Feb 07 06:03:59 2019 +0000
@@ -118,6 +118,7 @@
 CFLAGS += -fno-exceptions
 CFLAGS += -pthread
 CFLAGS += -fcheck-new
+CFLAGS += -fstack-protector
 # version 4 and above support fvisibility=hidden (matches jni_x86.h file)
 # except 4.1.2 gives pointless warnings that can't be disabled (afaik)
 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"
--- a/make/linux/makefiles/gcc.make	Thu Feb 07 05:42:54 2019 +0000
+++ b/make/linux/makefiles/gcc.make	Thu Feb 07 06:03:59 2019 +0000
@@ -86,6 +86,7 @@
 CFLAGS += -fno-exceptions
 CFLAGS += -D_REENTRANT
 CFLAGS += -fcheck-new
+CFLAGS += -fstack-protector
 # version 4 and above support fvisibility=hidden (matches jni_x86.h file)
 # except 4.1.2 gives pointless warnings that can't be disabled (afaik)
 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"
--- a/make/solaris/makefiles/gcc.make	Thu Feb 07 05:42:54 2019 +0000
+++ b/make/solaris/makefiles/gcc.make	Thu Feb 07 06:03:59 2019 +0000
@@ -75,6 +75,7 @@
 CFLAGS += -fno-exceptions
 CFLAGS += -D_REENTRANT
 CFLAGS += -fcheck-new
+CFLAGS += -fstack-protector
 
 ARCHFLAG = $(ARCHFLAG/$(BUILDARCH))