8000 gh-121045: Use link test to check whether -fstack-protector-strong works by ayappanec · Pull Request #121258 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-121045: Use link test to check whether -fstack-protector-strong works #121258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed
Prev Previous commit
Next Next commit
Merge branch 'main' into gh-121045
  • Loading branch information
ayappanec authored Jul 22, 2024
commit b157e0964ed82d179404fe0ba1f3acca97ed1d58
41 changes: 39 additions & 2 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2508,9 +2508,10 @@ case $ac_sys_system/$CC in
;;
*)
AX_CHECK_COMPILE_FLAG([-fstack-protector-strong], [BASECFLAGS="$BASECFLAGS -fstack-protector-strong"], [AC_MSG_WARN([-fstack-protector-strong not supported])], [-Werror])
AX_CHECK_COMPILE_FLAG([-Wtrampolines], [BASECFLAGS="$BASECFLAGS -Wtrampolines"], [AC_MSG_WARN([-Wtrampolines not supported])], [-Werror])
;;
esac
AX_CHECK_COMPILE_FLAG([-Wtrampolines], [BASECFLAGS="$BASECFLAGS -Wtrampolines"], [AC_MSG_WARN([-Wtrampolines not supported])], [-Werror])
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])])

case $GCC in
yes)
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.
0