Commit fa6ce242 authored by Martin Storsjö's avatar Martin Storsjö

configure: Don't make the crypt/bcrypt libs dependent of libssp

These should still be added if ssp is disabled.
parent fa25780e
......@@ -1128,10 +1128,6 @@ AS_IF([test "${enable_ssp}" != "no" -a "${enable_optimizations}" != "no"], [
dnl Win32 requires linking to ssp for stack-protection
AS_IF([test "${SYS}" = "mingw32"], [
LDFLAGS="${LDFLAGS} -lssp"
dnl library for Crypt/BCrypt APIs
AS_IF([test "${vlc_winstore_app}" != 1],
[LDFLAGS="${LDFLAGS} -ladvapi32"],
[LDFLAGS="${LDFLAGS} -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"
......@@ -1143,6 +1139,13 @@ AS_IF([test "${enable_ssp}" != "no" -a "${enable_optimizations}" != "no"], [
])
])
AS_IF([test "${SYS}" = "mingw32"], [
dnl library for Crypt/BCrypt APIs
AS_IF([test "${vlc_winstore_app}" != 1],
[LDFLAGS="${LDFLAGS} -ladvapi32"],
[LDFLAGS="${LDFLAGS} -lbcrypt"])
])
VLC_SAVE_FLAGS
LDFLAGS="${LDFLAGS} -Wl,-Bsymbolic"
AC_CACHE_CHECK([if linker supports -Bsymbolic], [ac_cv_ld_bsymbolic], [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment