diff options
author | Reuben Thomas <rrt@sc3d.org> | 2017-07-31 22:49:45 +0200 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2017-07-31 22:51:39 +0200 |
commit | c268692a64cbfb3edf38b99ce57e2e83dff47bfd (patch) | |
tree | 74d2c4debdaaf1acbb9e92446caadb4c8823fc5e /src | |
parent | 738170d6ecfb97c844b0ac49f39a494713412607 (diff) | |
download | enchant-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |