]> Savannah Git Hosting - gnulib.git/commitdiff
relocatable-lib-lgpl: Add support for mingw builds on Cygwin hosts.
authorBruno Haible <bruno@clisp.org>
Thu, 26 Sep 2024 00:02:56 +0000 (02:02 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 26 Sep 2024 00:02:56 +0000 (02:02 +0200)
Reported by Michele Locati <michele@locati.it> in
<https://lists.gnu.org/archive/html/bug-gettext/2024-09/msg00033.html>.

* m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Use
gl_BUILD_TO_HOST on the value of INSTALLPREFIX.
* modules/relocatable-lib (Files): Add m4/build-to-host.m4.
* modules/relocatable-lib-lgpl (Files): Likewise.
* modules/relocatable-prog-wrapper (Files): Likewise.

ChangeLog
m4/relocatable-lib.m4
modules/relocatable-lib
modules/relocatable-lib-lgpl
modules/relocatable-prog-wrapper

index eb64686dbbf6e0a4f6006c51b6d928b1cfec774f..c42d59d1896dc878b783450f872f39efe93a8594 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2024-09-25  Bruno Haible  <bruno@clisp.org>
+
+       relocatable-lib-lgpl: Add support for mingw builds on Cygwin hosts.
+       Reported by Michele Locati <michele@locati.it> in
+       <https://lists.gnu.org/archive/html/bug-gettext/2024-09/msg00033.html>.
+       * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Use
+       gl_BUILD_TO_HOST on the value of INSTALLPREFIX.
+       * modules/relocatable-lib (Files): Add m4/build-to-host.m4.
+       * modules/relocatable-lib-lgpl (Files): Likewise.
+       * modules/relocatable-prog-wrapper (Files): Likewise.
+
 2024-09-25  Bruno Haible  <bruno@clisp.org>
 
        build-to-host.m4: Add some convenience macros.
index eee1d1f799e1c4982c9f0fbe5283514dd9c370c3..7fcf29758f4ee1347ef6ccd5ed4af8086b17250e 100644 (file)
@@ -1,5 +1,5 @@
 # relocatable-lib.m4
-# serial 7
+# serial 8
 dnl Copyright (C) 2003, 2005-2007, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -21,7 +21,9 @@ AC_DEFUN([gl_RELOCATABLE_LIBRARY_BODY],
   else
     reloc_final_prefix="$prefix"
   fi
-  AC_DEFINE_UNQUOTED([INSTALLPREFIX], ["${reloc_final_prefix}"],
+  dnl Define reloc_final_prefix_c and reloc_final_prefix_c_make.
+  gl_BUILD_TO_HOST([reloc_final_prefix])
+  AC_DEFINE_UNQUOTED([INSTALLPREFIX], [${reloc_final_prefix_c}],
     [Define to the value of ${prefix}, as a string.])
   if test $RELOCATABLE = yes; then
     AC_DEFINE([ENABLE_RELOCATABLE], [1],
index 70f11f0f66180a190fdae096ba82c4daf5a1b668..7cdca5ce0a1e15e5c0dc12eab9e3ce94e7155433 100644 (file)
@@ -8,6 +8,7 @@ lib/relocatable.h
 lib/relocatable.c
 lib/relocatable.valgrind
 m4/relocatable-lib.m4
+m4/build-to-host.m4
 
 Depends-on:
 xalloc
index da6c6491562dd5b8488a5f5f123b2885e3b978a3..b8ecb51ef889f91f04a9d9fa475005ce6e683930 100644 (file)
@@ -8,6 +8,7 @@ lib/relocatable.h
 lib/relocatable.c
 lib/relocatable.valgrind
 m4/relocatable-lib.m4
+m4/build-to-host.m4
 
 Depends-on:
 strdup
index b2143809ca56e7621313b1f515b0e68c236e14ee..4d8e70d3ac0433118e2cc15d6dfb9f03d5b04ff0 100644 (file)
@@ -47,6 +47,7 @@ m4/rawmemchr.m4
 m4/readlink.m4
 m4/realloc.m4
 m4/relocatable-lib.m4
+m4/build-to-host.m4
 m4/setenv.m4
 
 Depends-on: