8000 Move fortify source to disable safety for testing · python/cpython@505016a · GitHub
[go: up one dir, main page]

Skip to content

Commit 505016a

Browse files
committed
Move fortify source to disable safety for testing
1 parent 98c011b commit 505016a

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

configure

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2510,6 +2510,7 @@ if test "$disable_safety" = "no"
25102510
then
25112511
AX_CHECK_COMPILE_FLAG([-fstack-protector-strong], [BASECFLAGS="$BASECFLAGS -fstack-protector-strong"], [AC_MSG_WARN([-fstack-protector-strong not supported])], [-Werror])
25122512
AX_CHECK_COMPILE_FLAG([-Wtrampolines], [BASECFLAGS="$BASECFLAGS -Wtrampolines"], [AC_MSG_WARN([-Wtrampolines not supported])], [-Werror])
2513+
AX_CHECK_COMPILE_FLAG([-D_FORTIFY_SOURCE=3], [BASECFLAGS="$BASECFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3"], [AC_MSG_WARN([-D_FORTIFY_SOURCE=3 not supported])], [-Werror])
25132514
fi
25142515

25152516
AC_MSG_CHECKING([for --enable-slower-safety])
@@ -2519,7 +2520,6 @@ AC_MSG_RESULT([$enable_slower_safety])
25192520

25202521
if test "$enable_slower_safety" = "yes"
25212522
then
2522-
AX_CHECK_COMPILE_FLAG([-D_FORTIFY_SOURCE=3], [BASECFLAGS="$BASECFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3"], [AC_MSG_WARN([-D_FORTIFY_SOURCE=3 not supported])])
25232523
fi
25242524

25252525
case $GCC in

0 commit comments

Comments
 (0)
0