[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:30:34 CEST 2020


This won't have any side effect on ssp builds using wincrypt, the extra 
library won't be used. In fact it doesn't used the encryption part of 
the code in the end library.

On 2020-04-09 10:27, Steve Lhomme wrote:
> ---
>   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
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> 


More information about the vlc-devel mailing list