From 06a59602c959d88d11aadba6018c38061bfe7182 Mon Sep 17 00:00:00 2001 From: Junfeng Dong Date: Tue, 26 Mar 2013 16:06:18 +0800 Subject: Fix hardcoded library path in the code for 64 bit compatibility. Change-Id: Ifbda5d6ccb2229272b90c2b95fa024f4a6c187dc --- location/module/Makefile.am | 1 + location/module/module-internal.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/location/module/Makefile.am b/location/module/Makefile.am index d517f09..c53596b 100644 --- a/location/module/Makefile.am +++ b/location/module/Makefile.am @@ -16,5 +16,6 @@ liblocation_module_la_CFLAGS = \ -I${srcdir}/../${MANAGER_DIR} \ -I${srcdir}/../${MODULE_DIR} \ -I${srcdir}/../${MAP_SERVICE_DIR} \ + -DLIBPREFIX=\"$(libdir)\" \ $(LOCATION_CFLAGS) diff --git a/location/module/module-internal.c b/location/module/module-internal.c index 164587d..d5d7081 100644 --- a/location/module/module-internal.c +++ b/location/module/module-internal.c @@ -32,7 +32,7 @@ #include "location-log.h" #define MAX_MODULE_INDEX 3 -const char* MODULE_PATH_PREFIX = "/usr/lib/location/module"; +const char* MODULE_PATH_PREFIX = LIBPREFIX "/location/module"; static GMod* gmod_new (const char* module_name, gboolean is_resident) -- cgit v1.2.3