From 99926a58e8c3b7112199fd58577bb45dd8c51a71 Mon Sep 17 00:00:00 2001 From: Tristan Matthews <tristan.matthews@savoirfairelinux.com> Date: Tue, 28 Oct 2014 13:50:27 -0400 Subject: [PATCH] configure: fix linking with contrib Refs #58282 (cherry picked from vlc commits 06b9bc0acd314f79fdd03d9f0571dbf20319b5cf 8aa887870319cc0089f781b6ecd332ae7af5c02c b0f1df3988938b37dd04649918f3c70465299dd5) Change-Id: Icbf887f35eded1b2abf36b464ccbeb1de497b02b --- daemon/configure.ac | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/daemon/configure.ac b/daemon/configure.ac index 8ba0569266..e576e9657a 100644 --- a/daemon/configure.ac +++ b/daemon/configure.ac @@ -99,10 +99,18 @@ AS_IF([test "$SYS" = linux],[ ]) AM_CONDITIONAL(HAVE_ANDROID, test "${HAVE_ANDROID}" = "1") -LT_INIT +dnl override platform specific check for dependent libraries +dnl otherwise libtool linking of shared libraries will +dnl fail on anything other than pass_all. +AC_CACHE_VAL(lt_cv_deplibs_check_method, + [lt_cv_deplibs_check_method=pass_all]) + +LT_INIT([dlopen win32-dll shared disable-static]) dnl Define C++ as default language -AC_LANG(C++) +LT_LANG(C++) + +lt_cv_deplibs_check_method=pass_all dnl Check for C++11 support AX_CXX_COMPILE_STDCXX_11([noext],[mandatory]) -- GitLab