summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemun Lee <sm79.lee@samsung.com>2015-08-22 04:07:27 (GMT)
committerSemun Lee <sm79.lee@samsung.com>2015-08-22 04:07:27 (GMT)
commitbc7c682d888a70876e725d2cc0b61d584048332d (patch)
tree93f92801817355552a53355f4ff78120496f8f26
parentb179e2ae78d5f48586b7f510682ba074536db8ea (diff)
downloadui-gadget-1-accepted/tizen/wearable/20150822.065834.zip
ui-gadget-1-accepted/tizen/wearable/20150822.065834.tar.gz
ui-gadget-1-accepted/tizen/wearable/20150822.065834.tar.bz2
In the engine so file may not be in /usr/lib. Let the ld find the so file with LD_LIBRARY_PATH Change-Id: I1090cd96f26306c8b4b6e04e2a6fcd054b901c12 Signed-off-by: Semun Lee <sm79.lee@samsung.com>
-rw-r--r--[-rwxr-xr-x]src/engine.c15
-rw-r--r--[-rwxr-xr-x]src/module.c0
2 files changed, 1 insertions, 14 deletions
diff --git a/src/engine.c b/src/engine.c
index 3dcdb11..42e141b 100755..100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -55,8 +55,6 @@ struct ug_engine *ug_engine_load()
{
void *handle;
struct ug_engine *engine;
- char engine_file[PATH_MAX];
- enum ug_engine_type type = UG_ENGINE_EFL;
int (*engine_init)(struct ug_engine_ops *ops);
engine = calloc(1, sizeof(struct ug_engine));
@@ -66,18 +64,7 @@ struct ug_engine *ug_engine_load()
return NULL;
}
- if (type == UG_ENGINE_EFL) { /* UG_ENGINE_EFL is default*/
- if (snprintf(engine_file, PATH_MAX, "/usr/lib/libui-gadget-1-efl-engine.so") < 0){
- goto engine_free;
- }
- else if (file_exist(engine_file) < 0) {
- goto engine_free;
- }
- }
- else
- goto engine_free;
-
- handle = dlopen(engine_file, RTLD_LAZY);
+ handle = dlopen("libui-gadget-1-efl-engine.so", RTLD_LAZY);
if (!handle) {
_ERR("dlopen failed: %s", dlerror());
goto engine_free;
diff --git a/src/module.c b/src/module.c
index c61f720..c61f720 100755..100644
--- a/src/module.c
+++ b/src/module.c