Support 2.x apps which use their own shared libraries 27/59227/5 accepted/tizen/mobile/20160216.001612 accepted/tizen/tv/20160216.001625 accepted/tizen/wearable/20160216.001644 submit/tizen/20160215.013052
authorSangyoon Jang <s89.jang@samsung.com>
Thu, 11 Feb 2016 12:39:03 +0000 (21:39 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Fri, 12 Feb 2016 06:04:45 +0000 (15:04 +0900)
commit7ee2db4af1af8eb9d0c4de046fd375aa03419d7a
tree7b64ebcb7a548ff870881c99de8234f08781523c
parentb9d1ba63e661cf41b932816eab3a7a67fe5389e1
Support 2.x apps which use their own shared libraries

Some applications from Tizen 2.x were compiled with '-rpath'
pointing at their lib directory which starts as '/opt/usr/apps/...'.
But this path is not adapted to Tizen 3.0.

We cannot set LD_LIBRARY_PATH directly by some security issues,
we make the loader have empty rpath to the dynamic linker looks in the CWD
forcely. And then, change working directory before calling dlopen() to
find libraries well.

Change-Id: I8111e5ca087ea07c52866d77deb7f53332957346
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
CMakeLists.txt
inc/launchpad_common.h
src/launchpad.c
src/launchpad_common.c
src/launchpad_loader.c