Compile with FORTIFY_SOURCE

This can catch some classes of buffer overflows.
This commit is contained in:
Andrew Gaul 2019-07-04 10:20:26 -07:00
parent 21321a9d96
commit 5820c72092

View File

@ -33,7 +33,7 @@ AC_CHECK_HEADERS([sys/xattr.h])
AC_CHECK_HEADERS([attr/xattr.h]) AC_CHECK_HEADERS([attr/xattr.h])
AC_CHECK_HEADERS([sys/extattr.h]) AC_CHECK_HEADERS([sys/extattr.h])
CXXFLAGS="$CXXFLAGS -Wall -D_FILE_OFFSET_BITS=64" CXXFLAGS="$CXXFLAGS -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2"
dnl ---------------------------------------------- dnl ----------------------------------------------
dnl For macOS dnl For macOS