Commit e592a370 authored by Florent Revest's avatar Florent Revest

Compiles libdsme with -fPIC and corrects .so installation

parent 4af4aeb1
...@@ -13,8 +13,28 @@ PR = "r1" ...@@ -13,8 +13,28 @@ PR = "r1"
PV = "+git${SRCREV}" PV = "+git${SRCREV}"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
do_compile_prepend () {
export CFLAGS="$CFLAGS -fPIC"
}
do_install() { do_install() {
oe_runmake install DESTDIR=${D} oe_runmake install DESTDIR=${D}
} }
do_install_append() {
cd ${D}/usr/lib/
# Fix broken symlinks
rm libdsme.so libdsme_dbus_if.so libthermalmanager_dbus_if.so
ln -s libdsme.so.0.3.0 libdsme.so
ln -s libdsme.so.0.3.0 libdsme.so.0
ln -s libdsme.so.0.3.0 libdsme.so.0.3
ln -s libdsme_dbus_if.so.0.3.0 libdsme_dbus_if.so
ln -s libdsme_dbus_if.so.0.3.0 libdsme_dbus_if.so.0
ln -s libdsme_dbus_if.so.0.3.0 libdsme_dbus_if.so.0.3
ln -s libthermalmanager_dbus_if.so.0.3.0 libthermalmanager_dbus_if.so
ln -s libthermalmanager_dbus_if.so.0.3.0 libthermalmanager_dbus_if.so.0
ln -s libthermalmanager_dbus_if.so.0.3.0 libthermalmanager_dbus_if.so.0.3
}
FILES_${PN}-dbg += "/opt" FILES_${PN}-dbg += "/opt"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment