diff options
author | Junfeng Dong <junfeng.dong@intel.com> | 2013-03-26 16:06:18 +0800 |
---|---|---|
committer | lifang <fangx.li@intel.com> | 2013-03-29 05:13:29 +0800 |
commit | 06a59602c959d88d11aadba6018c38061bfe7182 (patch) | |
tree | d986beaad42496d46480977270d1266dba6dc6a2 | |
parent | 496fcbf643550ce1b73fa2bf0553acb372f8822a (diff) | |
download | libslp-location-06a59602c959d88d11aadba6018c38061bfe7182.tar.gz libslp-location-06a59602c959d88d11aadba6018c38061bfe7182.tar.bz2 libslp-location-06a59602c959d88d11aadba6018c38061bfe7182.zip |
Fix hardcoded library path in the code for 64 bit compatibility.
Change-Id: Ifbda5d6ccb2229272b90c2b95fa024f4a6c187dc
-rw-r--r-- | location/module/Makefile.am | 1 | ||||
-rw-r--r-- | location/module/module-internal.c | 2 |
2 files changed, 2 insertions, 1 deletions
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) |