!128 add Stack protection

From: @kuenking111
Reviewed-by: @jvmboy
Signed-off-by: @jvmboy
This commit is contained in:
openeuler-ci-bot 2021-12-03 01:17:52 +00:00 committed by Gitee
commit e7947e4262

View File

@ -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