Skip to content

Commit db3d277

Browse files
authored
Add an option to use secure memset (lsh123#298)
1 parent 5dc2b11 commit db3d277

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

configure.ac

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2304,13 +2304,25 @@ dnl ==========================================================================
23042304
AC_MSG_CHECKING(for pedantic)
23052305
AC_ARG_ENABLE([pedantic], [AC_HELP_STRING([--enable-pedantic], [enable pedantic compilation flags (no)])])
23062306
if test "z$enable_pedantic" = "zyes" ; then
2307-
dnl CFLAGS="$CFLAGS -pedantic -Wall -std=c99 -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wredundant-decls"
23082307
CFLAGS="$CFLAGS -O -pedantic -Wall -std=c99 -fno-inline -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wredundant-decls"
23092308
AC_MSG_RESULT([yes])
23102309
else
23112310
AC_MSG_RESULT([disabled])
23122311
fi
23132312

2313+
dnl ==========================================================================
2314+
dnl Secure memset
2315+
dnl ==========================================================================
2316+
AC_MSG_CHECKING(for secure memset)
2317+
AC_ARG_ENABLE([secure-memset], [AC_HELP_STRING([--enable-secure-memset], [enable secure memset compilation flags (yes)])])
2318+
if test "z$enable_secure_memset" != "zno" ; then
2319+
CFLAGS="$CFLAGS -fno-builtin-memset"
2320+
AC_MSG_RESULT([yes])
2321+
else
2322+
AC_MSG_RESULT([disabled])
2323+
fi
2324+
2325+
23142326
dnl ==========================================================================
23152327
dnl Final steps: xmlsec config
23162328
dnl ==========================================================================

0 commit comments

Comments
 (0)