Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26aa174

Browse files
committed
Add fortify source level 3 to default compiler options
1 parent db00fee commit 26aa174

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

configure

Lines changed: 39 additions & 0 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2513,6 +2513,7 @@ AS_VAR_IF([with_strict_overflow], [yes],
25132513
# These flags should be enabled by default for all builds.
25142514
AX_CHECK_COMPILE_FLAG([-fstack-protector-strong], [BASECFLAGS="$BASECFLAGS -fstack-protector-strong"], [AC_MSG_WARN([-fstack-protector-strong not supported])], [-Werror])
25152515
AX_CHECK_COMPILE_FLAG([-Wtrampolines], [BASECFLAGS="$BASECFLAGS -Wtrampolines"], [AC_MSG_WARN([-Wtrampolines not supported])], [-Werror])
2516+
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])])
25162517

25172518
case $GCC in
25182519
yes)

0 commit comments

Comments
 (0)