summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-07-28 11:02:47 +0300
committerSebastian Dröge <sebastian@centricular.com>2015-07-28 11:03:14 +0300
commitac3437153dc6cb3d82cdda0d1f60ffc5600fdf67 (patch)
tree36f11ccca58703bceaae6bde74d0659f19c36282
parent1a127d19bb2ab3972f0f86dfa7ad88ba6623667a (diff)
downloadgst-libav-ac3437153dc6cb3d82cdda0d1f60ffc5600fdf67.tar.gz
For static builds, add the ffmpeg library directories to the linker flags
-rw-r--r--configure.ac10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index c00bdf7..ff79721 100644
--- a/configure.ac
+++ b/configure.ac
@@ -281,7 +281,11 @@ else
dnl with static linking we can't use the .a archive directly as they would
dnl be included in the final libgstlibav.a as a file and won't be usable.
dnl libav*.a must be copied to the final destination too
- LIBAV_LIBS="-lavformat -lavcodec -lswresample -lavutil"
+ LIBAV_LIBS="-L\$(top_builddir)/gst-libs/ext/libav/libavformat \
+ -L\$(top_builddir)/gst-libs/ext/libav/libavcodec \
+ -L\$(top_builddir)/gst-libs/ext/libav/libswresample \
+ -L\$(top_builddir)/gst-libs/ext/libav/libavutil \
+ -lavformat -lavcodec -lswresample -lavutil"
else
dnl libgstlibav.la: libs to statically link to
LIBAV_LIBS="$LIBAV_DEPS"
@@ -298,7 +302,9 @@ else
dnl with static linking we can't use the .a archive directly as they would
dnl be included in the final libgstswscale.a as a file and won't be usable.
dnl libav*.a must be copied to the final destination too
- SWSCALE_LIBS="-lswscale -lavutil"
+ SWSCALE_LIBS="-L\$(top_builddir)/gst-libs/ext/libav/libswscale \
+ -L\$(top_builddir)/gst-libs/ext/libav/libavutil \
+ -lswscale -lavutil"
else
dnl libgstswscale.la: libs to statically link to
SWSCALE_LIBS="$SWSCALE_DEPS"