e58467e67ec967fe2ab70738de3ce57c51779c9f
[buildroot.git] /
1 From 1ca4251d1284f2cb56e31aaec4d369809e2139c9 Mon Sep 17 00:00:00 2001
2 From: Peter Seiderer <ps.report@gmx.net>
3 Date: Mon, 24 Feb 2014 16:30:39 +0100
4 Subject: [PATCH] Fix libgstfsl linkage (add -lrt for shared memory functions).
5
6 Fixes runtime failure of gst-fsl-plugins, e.g.:
7 (gst-plugin-scanner:1700): GStreamer-WARNING **: Failed to load
8 plugin '/usr/lib/gstreamer-0.10/libmfw_vpu.so':
9 /usr/lib/libgstfsl-0.10.so.0: undefined symbol: shm_open)
10
11 Signed-off-by: Peter Seiderer <ps.report@gmx.net>
12 ---
13 configure.ac | 3 +++
14 libs/Makefile.am | 2 +-
15 2 files changed, 4 insertions(+), 1 deletion(-)
16
17 diff --git a/configure.ac b/configure.ac
18 index a5d1655..7b5a7a6 100755
19 --- a/configure.ac
20 +++ b/configure.ac
21 @@ -173,6 +173,9 @@ AC_CHECK_LIB(ipu, mxc_ipu_lib_task_init, [IPU_LIBS=-lipu], [echo "No libipu arou
22 AC_SUBST(IPU_CFLAGS)
23 AC_SUBST(IPU_LIBS)
24
25 +AC_SEARCH_LIBS([shm_open], [rt], [SHM_LIBS="-lrt"])
26 +AC_SUBST(SHM_LIBS)
27 +
28 dnl of the POSIX Real-Time Extensions.
29 AC_CHECK_LIB(rt, clock_gettime)
30 AC_SUBST(RT_CFLAGS)
31 diff --git a/libs/Makefile.am b/libs/Makefile.am
32 index 2f56bba..5b30657 100755
33 --- a/libs/Makefile.am
34 +++ b/libs/Makefile.am
35 @@ -42,7 +42,7 @@ libgstfsl_@GST_MAJORMINOR@_la_CFLAGS += -DIPULIB
36 endif
37
38 libgstfsl_@GST_MAJORMINOR@_la_LDFLAGS = -version-info @GSTMXLIBS_VERSION@
39 -libgstfsl_@GST_MAJORMINOR@_la_LIBADD = $(GST_BASE_LIBS) -lgstvideo-@GST_MAJORMINOR@ -lgstinterfaces-$(GST_MAJORMINOR) $(IPU_LIBS) $(RT_LIBS)
40 +libgstfsl_@GST_MAJORMINOR@_la_LIBADD = $(GST_BASE_LIBS) -lgstvideo-@GST_MAJORMINOR@ -lgstinterfaces-$(GST_MAJORMINOR) $(IPU_LIBS) $(RT_LIBS) $(SHM_LIBS)
41
42 libgstfsl_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/imx-mm
43 libgstfsl_@GST_MAJORMINOR@include_HEADERS = \
44 --
45 1.8.1.4
46