[oe-commits] yanjun.zhu : python-gst: link python shared library to config directory

git at git.openembedded.org git at git.openembedded.org
Tue Jun 10 16:44:20 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 7a3b7d70a0cc4cdef81bb63fdac7de8f1309d1fc
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=7a3b7d70a0cc4cdef81bb63fdac7de8f1309d1fc

Author: yanjun.zhu <yanjun.zhu at windriver.com>
Date:   Fri Jun  6 15:19:47 2014 +0800

python-gst: link python shared library to config directory

python-gst needs python shared library in python config directory.

Signed-off-by: yanjun.zhu <yanjun.zhu at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/recipes-devtools/python/python-gst_0.10.22.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-devtools/python/python-gst_0.10.22.bb b/meta/recipes-devtools/python/python-gst_0.10.22.bb
index a551adb..2a5f2b3 100644
--- a/meta/recipes-devtools/python/python-gst_0.10.22.bb
+++ b/meta/recipes-devtools/python/python-gst_0.10.22.bb
@@ -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
+}



More information about the Openembedded-commits mailing list