summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2017-07-31 22:49:45 +0200
committerReuben Thomas <rrt@sc3d.org>2017-07-31 22:51:39 +0200
commitc268692a64cbfb3edf38b99ce57e2e83dff47bfd (patch)
tree74d2c4debdaaf1acbb9e92446caadb4c8823fc5e /src
parent738170d6ecfb97c844b0ac49f39a494713412607 (diff)
downloadenchant-c268692a64cbfb3edf38b99ce57e2e83dff47bfd.tar.gz
Allow Enchant to be built without --enable-relocatable
Thanks to Bruno Haible for pointing out the disadvantages (primarily for GNU system packagers) of forcing --enable-relocatable. Warn that the tests will fail for a non-relocatable build.
Diffstat (limited to 'src')
-rw-r--r--src/lib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.c b/src/lib.c
index 1304c89..c571a0d 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -1456,7 +1456,11 @@ enchant_get_prefix_dir(void)
void
enchant_set_prefix_dir(const char *new_prefix)
{
+#ifdef ENABLE_RELOCATABLE
set_relocation_prefix (INSTALLPREFIX, new_prefix);
+#else
+ (void)new_prefix;
+#endif
}
const char * _GL_ATTRIBUTE_CONST