Remove -D_FORTIFY_SOURCE=2 and -lssp with mingw build
This commit is contained in:
parent
420723ee18
commit
e07b5feba5
@ -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]])
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user