[vlc-commits] configure.ac: Don't link with -ladvapi32 when building for winstore
Hugo Beauzée-Luyssen
git at videolan.org
Wed Nov 22 14:31:53 CET 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Nov 17 15:40:49 2017 +0100| [66ad43d12f8829287a551d5ece9bc384e822aeda] | committer: Hugo Beauzée-Luyssen
configure.ac: Don't link with -ladvapi32 when building for winstore
The functions we're trying to link with are already present in
libwinstorecompat
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=66ad43d12f8829287a551d5ece9bc384e822aeda
---
configure.ac | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index d9ce412e5e..c089de8c1f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1127,7 +1127,10 @@ AH_BOTTOM([
AX_APPEND_COMPILE_FLAGS([-fstack-protector-strong])
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 -ladvapi32" ])
+ AS_IF([test "${SYS}" = "mingw32"], [
+ LDFLAGS="${LDFLAGS} -lssp"
+ AS_IF([test "${vlc_winstore_app}" != 1], [LDFLAGS="${LDFLAGS} -ladvapi32"])
+ ])
])
VLC_SAVE_FLAGS
More information about the vlc-commits
mailing list