From 811a765bef5701b167ce51a047745140df9bd04f Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Tue, 14 Oct 2014 18:24:25 -0400 Subject: [PATCH] build: mingw needs libssp for hardening with dlls --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 765b39892..ef759a44b 100644 --- a/configure.ac +++ b/configure.ac @@ -386,6 +386,12 @@ if test x$use_hardening != xno; then AX_CHECK_LINK_FLAG([[-pie]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS -pie"]) fi + case $host in + *mingw*) + AC_CHECK_LIB([ssp], [main],, AC_MSG_ERROR(lib missing)) + ;; + esac + CXXFLAGS="$CXXFLAGS $HARDENED_CXXFLAGS" CPPFLAGS="$CPPFLAGS $HARDENED_CPPFLAGS" LDFLAGS="$LDFLAGS $HARDENED_LDFLAGS"