From 61b0fd32705302176c97ba33ee2885bc42608d1d Mon Sep 17 00:00:00 2001 From: kuenking111 Date: Thu, 2 Dec 2021 20:36:26 +0800 Subject: [PATCH] I4KVTB: add Stack protection --- openjdk-11.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openjdk-11.spec b/openjdk-11.spec index 62af5b2..7f9bae3 100644 --- a/openjdk-11.spec +++ b/openjdk-11.spec @@ -1210,8 +1210,8 @@ export ARCH_DATA_MODEL=64 # We use ourcppflags because the OpenJDK build seems to # pass EXTRA_CFLAGS to the HotSpot C++ compiler... # Explicitly set the C++ standard as the default has changed on GCC >= 6 -EXTRA_CFLAGS="%ourcppflags -Wno-error" -EXTRA_CPP_FLAGS="%ourcppflags -Wno-error" +EXTRA_CFLAGS="%ourcppflags -Wno-error -fstack-protector-all" +EXTRA_CPP_FLAGS="%ourcppflags -Wno-error -fstack-protector-all" export EXTRA_CFLAGS -- Gitee