]> Savannah Git Hosting - gnulib.git/commitdiff
relocatable-lib-lgpl: Allow unconditional use of set_relocation_prefix.
authorBruno Haible <bruno@clisp.org>
Thu, 25 Apr 2024 12:07:12 +0000 (14:07 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 25 Apr 2024 12:07:12 +0000 (14:07 +0200)
Reported by Reuben Thomas <rrt@sc3d.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00384.html>.

* lib/relocatable.h (set_relocation_prefix): Define in a dummy way if
ENABLE_RELOCATABLE is not defined.

ChangeLog
lib/relocatable.h

index fe6b355f4b866109a3e360c99a055853837d9db2..8d1e0e981b2d83bbf71204e6688962e942e0d678 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-04-25  Bruno Haible  <bruno@clisp.org>
+
+       relocatable-lib-lgpl: Allow unconditional use of set_relocation_prefix.
+       Reported by Reuben Thomas <rrt@sc3d.org> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00384.html>.
+       * lib/relocatable.h (set_relocation_prefix): Define in a dummy way if
+       ENABLE_RELOCATABLE is not defined.
+
 2024-04-25  Bruno Haible  <bruno@clisp.org>
 
        doc: Update target platforms list.
index 162f9d82a440d5488c9bf20e542ee4e8b2fbe5d6..0c10ebe2a1da559a1c955dac2baf4d9d3a2032b4 100644 (file)
@@ -109,6 +109,8 @@ extern char * compute_curr_prefix (const char *orig_installprefix,
 #else
 
 /* By default, we use the hardwired pathnames.  */
+#define set_relocation_prefix(orig_prefix, curr_prefix) \
+  ((void) (orig_prefix), (void) (curr_prefix))
 #define relocate(pathname) (pathname)
 #define relocate2(pathname,allocatedp) (*(allocatedp) = NULL, (pathname))