[Bug 737429] Android runtime contains libs with rpath

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Oct 19 13:20:36 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=737429

--- Comment #7 from Andrew Esh <andrew.c.esh at gmail.com> ---
I've made a little progress on this. The libz library is built within cerbero.
It is also available from the NDK. When the linker find both of these, it
determines that the developer is trying to use a "replacement" library for the
"system" one in the NDK. It adds the hardcoded path so the executable will be
certain to use the library the developer specified, even when a system one
could be found.

On Android, the "system" vs "replacement" library problem is solved by
searching the APK path first, followed by the /system/lib path. All libraries
must not have a path. The hardcoded path solution will fail on any cross
development platform, to be honest.

Pointing the dist/<platform>/lib/libz.la file's libdir entry to the NDK version
of libz.so solves the problem in many cases. This causes the linker to see a
match between the "system" library and the one being linked, so it does not add
the path.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list