[vlc-devel] [PATCH v2 2/2] configure: link with bcrypt when using libssp on Windows

Steve Lhomme robux4 at ycbcr.xyz
Thu Apr 9 10:27:20 CEST 2020


---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 4fd1240d09b..452d9fc281c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1237,7 +1237,8 @@ AS_IF([test "${enable_ssp}" != "no" -a "${enable_optimizations}" != "no"], [
   AX_APPEND_COMPILE_FLAGS([-fstack-protector-strong], [CXXFLAGS])
   dnl Win32 requires linking to ssp for stack-protection
   AS_IF([test "${SYS}" = "mingw32"], [
-      LDFLAGS="${LDFLAGS} -lssp"
+      CFLAGS="${CFLAGS} -lssp -lbcrypt"
+      CXXFLAGS="${CXXFLAGS} -lssp -lbcrypt"
       AC_CACHE_CHECK([if linker supports stack protectors], [ac_cv_ld_ssp], [
         AC_TRY_LINK([#include <stdio.h>],[char buf[100]; fgets(buf, sizeof(buf), stdin);], [
           ac_cv_ld_ssp="yes"
-- 
2.17.1



More information about the vlc-devel mailing list