aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorwsnipex <wsnipex@a1.net>2014-05-03 12:41:42 +0200
committerwsnipex <wsnipex@a1.net>2014-05-03 12:41:42 +0200
commita2b7ded9fd35c6323355fb8af88f250db8a8bebe (patch)
treeddc6351f10569baeb15ae975a103c3397fdf4799 /configure.in
parentf2bcc06841435fe2f1130c92e49d71d1dbd25215 (diff)
[configure] fix static linking when ffmpeg found nettle/hogweed
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index ff31138546..f3e142f26b 100644
--- a/configure.in
+++ b/configure.in
@@ -880,6 +880,7 @@ if test "$use_static_ffmpeg" = "yes"; then
# ffmpeg may depend on gnutls and vorbisenc, we add those libs at the end of linker
# command in order to resolve any missing symbols
GNUTLS_ALL_LIBS=`${PKG_CONFIG} --static --libs-only-l --silence-errors gnutls`
+ HOGWEED_ALL_LIBS=`${PKG_CONFIG} --static --libs-only-l --silence-errors hogweed nettle`
VORBISENC_ALL_LIBS=`${PKG_CONFIG} --static --libs-only-l --silence-errors vorbisenc`
fi
@@ -1530,7 +1531,9 @@ fi
if test "$use_librtmp" != "no"; then
PKG_CHECK_MODULES([LIBRTMP], [librtmp],
[INCLUDES="$INCLUDES $LIBRTMP_CFLAGS"; LIBS="$LIBS $LIBRTMP_LIBS";
- AC_DEFINE([HAS_LIBRTMP], [1], [Whether to use libRTMP library.])],
+ AC_DEFINE([HAS_LIBRTMP], [1], [Whether to use libRTMP library.])
+ RTMP_ALL_LIBS=$(${PKG_CONFIG} --static --libs-only-l --silence-errors librtmp)
+ test "$use_static_ffmpeg" = "yes" && LIBS="$LIBS $RTMP_ALL_LIBS"],
[AC_CHECK_HEADERS([librtmp/log.h librtmp/amf.h librtmp/rtmp.h],,
[if test "$use_librtmp" = "yes"; then
AC_MSG_ERROR($librtmp_not_found)
@@ -2671,6 +2674,7 @@ AC_SUBST(GTEST_CONFIGURED)
AC_SUBST(USE_DOXYGEN)
AC_SUBST(USE_PVR_ADDONS)
AC_SUBST(GNUTLS_ALL_LIBS)
+AC_SUBST(HOGWEED_ALL_LIBS)
AC_SUBST(VORBISENC_ALL_LIBS)
# pushd and popd are not available in other shells besides bash, so implement