Running
readelf --dynamic libgc_wayland_protocol.so | grep NEEDED
shows that the library has a runtime dependency on libffi. Same thing
applies to libwayland-viv.so.
For non-wayland builds, where libffi may or may not be available during
package time, skip packaging them so that they don't cause unexpected
dependency changes in buildhistory.
Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so.2
ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so
+ # skip packaging wayland libraries if no support is requested
+ if [ "${USE_WL}" = "no" ]; then
+ rm ${D}${libdir}/libgc_wayland_protocol.*
+ rm ${D}${libdir}/libwayland-viv.*
+ fi
+
for backend in wl x11 fb dfb; do
find ${D}${libdir} -name "*-$backend.so" -exec rm '{}' ';'
done