]> code.ossystems Code Review - openembedded-core.git/commitdiff
python-gst: link python shared library to config directory
authoryanjun.zhu <yanjun.zhu@windriver.com>
Fri, 6 Jun 2014 07:19:47 +0000 (15:19 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 Jun 2014 16:14:36 +0000 (17:14 +0100)
python-gst needs python shared library in python config directory.

Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-devtools/python/python-gst_0.10.22.bb

index a551adbfa6f265373a5289cd93fdffdf84a3ff3a..2a5f2b3239023aa5ba281f1b5b78859a8efd3b32 100644 (file)
@@ -21,3 +21,9 @@ EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../"
 FILES_${PN} += "${datadir}/gst-python"
 FILES_${PN}-dev += "${datadir}/gst-python/0.10/defs"
 FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/gst-0.10/gst/.debug/ ${libdir}/gstreamer-0.10/.debug/"
+
+do_configure_prepend() {
+       if [ `find ${STAGING_LIBDIR} -name libpython*.so` ]; then
+               ln -sf ${STAGING_LIBDIR}/libpython*.so `find ${STAGING_LIBDIR} -name libpython*.a -exec dirname {} \;`
+       fi
+}