Fix hardcoded library path in the code for 64 bit compatibility.
authorJunfeng Dong <junfeng.dong@intel.com>
Tue, 26 Mar 2013 08:06:18 +0000 (16:06 +0800)
committerlifang <fangx.li@intel.com>
Thu, 28 Mar 2013 21:13:29 +0000 (05:13 +0800)
Change-Id: Ifbda5d6ccb2229272b90c2b95fa024f4a6c187dc

location/module/Makefile.am
location/module/module-internal.c

index d517f09..c53596b 100644 (file)
@@ -16,5 +16,6 @@ liblocation_module_la_CFLAGS = \
                                                        -I${srcdir}/../${MANAGER_DIR} \\r
                                                        -I${srcdir}/../${MODULE_DIR} \\r
                                                        -I${srcdir}/../${MAP_SERVICE_DIR} \\r
+                                                       -DLIBPREFIX=\"$(libdir)\" \\r
                                                        $(LOCATION_CFLAGS)\r
 \r
index 164587d..d5d7081 100644 (file)
@@ -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)