summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure.ac2
-rw-r--r--location/module/module-internal.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 803905b..7b2f4b3 100755
--- a/configure.ac
+++ b/configure.ac
@@ -76,7 +76,7 @@ if ([test "x$enable_dlog" = xyes]); then
LOCATION_LIBS="$LOCATION_LIBS $DLOG_LIBS"
fi
fi
-
+LOCATION_CFLAGS="$LOCATION_CFLAGS -DLIBPATH=\\\"$libdir\\\""
# Generate files
AC_CONFIG_FILES([
location.pc
diff --git a/location/module/module-internal.c b/location/module/module-internal.c
index e4d0fdd..6145e19 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 = LIBPATH "/location/module";
static GMod*
gmod_new (const char* module_name, gboolean is_resident)