[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH acl] build: Fix cross-compilation on musl-based systems
From: |
Guillem Jover |
Subject: |
[PATCH acl] build: Fix cross-compilation on musl-based systems |
Date: |
Sat, 3 Dec 2022 13:14:48 +0100 |
The gettext implementation in musl does not define some of the internal
symbols that AM_GNU_GETTEXT used to check for. This got fixed in gettext
0.19.8, but the AM_GNU_GETTEXT_VERSION macro requires a specific version
even if the system contains a higher one. We switch to use the new
AM_GNU_GETTEXT_REQUIRE_VERSION macro which requires at least a specific
version, and bump the AM_GNU_GETTEXT_VERSION to the first one that had
support for the new macro.
Signed-off-by: Guillem Jover <guillem@hadrons.org>
---
configure.ac | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index fe5d7ce..f6c5c0f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,7 +34,10 @@ AC_SYS_LARGEFILE
AM_PROG_AR
LT_INIT
-AM_GNU_GETTEXT_VERSION([0.18.2])
+# Minimal version supporting AM_GNU_GETTEXT_REQUIRE_VERSION.
+AM_GNU_GETTEXT_VERSION([0.19.6])
+# Require at least the following version, but use the latest available one.
+AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8])
AM_GNU_GETTEXT([external])
AC_ARG_ENABLE([debug],
--
2.38.1
- [PATCH acl] build: Fix cross-compilation on musl-based systems,
Guillem Jover <=