!247 add Stack protection
From: @kuenking111 Reviewed-by: @jvmboy Signed-off-by: @jvmboy
This commit is contained in:
commit
2d4e102a88
@ -1655,10 +1655,10 @@ export ARCH_DATA_MODEL=64
|
|||||||
|
|
||||||
# We use ourcppflags because the OpenJDK build seems to
|
# We use ourcppflags because the OpenJDK build seems to
|
||||||
# pass EXTRA_CFLAGS to the HotSpot C++ compiler...
|
# pass EXTRA_CFLAGS to the HotSpot C++ compiler...
|
||||||
EXTRA_CFLAGS="%ourcppflags -Wno-error -fcommon -fsigned-char"
|
EXTRA_CFLAGS="%ourcppflags -Wno-error -fcommon -fsigned-char -fstack-protector-all"
|
||||||
EXTRA_CPP_FLAGS="%ourcppflags -Wno-error"
|
EXTRA_CPP_FLAGS="%ourcppflags -Wno-error"
|
||||||
|
|
||||||
EXTRA_ASFLAGS="${EXTRA_CFLAGS} -Wa,--generate-missing-build-notes=yes"
|
EXTRA_ASFLAGS="${EXTRA_CFLAGS} -Wa,--generate-missing-build-notes=yes -fstack-protector-all"
|
||||||
export EXTRA_CFLAGS EXTRA_ASFLAGS
|
export EXTRA_CFLAGS EXTRA_ASFLAGS
|
||||||
|
|
||||||
for suffix in %{build_loop} ; do
|
for suffix in %{build_loop} ; do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user