Remove -D_FORTIFY_SOURCE=2 and -lssp with mingw build

This commit is contained in:
kinichiro 2021-05-30 04:52:23 +00:00
parent 420723ee18
commit e07b5feba5
2 changed files with 4 additions and 2 deletions

View File

@ -73,7 +73,9 @@ AC_DEFUN([CHECK_C_HARDENING_OPTIONS], [
CHECK_CFLAG([[-fno-strict-overflow]])
# _FORTIFY_SOURCE replaces builtin functions with safer versions.
AX_ADD_FORTIFY_SOURCE
AS_IF([test "x$HOST_OS" != "xwin"], [
AX_ADD_FORTIFY_SOURCE
])
# Enable read only relocations
CHECK_LDFLAG([[-Wl,-z,relro]])

View File

@ -112,7 +112,7 @@ char buf[1]; getentropy(buf, 1);
CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS"
CPPFLAGS="$CPPFLAGS -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0600"
CPPFLAGS="$CPPFLAGS"
AC_SUBST([PLATFORM_LDADD], ['-lws2_32 -lbcrypt -lssp'])
AC_SUBST([PLATFORM_LDADD], ['-lws2_32 -lbcrypt'])
;;
*solaris*)
HOST_OS=solaris