summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--location/module/Makefile.am1
-rw-r--r--location/module/module-internal.c2
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)