[PATCH libgpg-error] build: Restore support for cross building to musl targets.

Érico Nogueira ericonr at disroot.org
Tue Apr 27 17:02:17 CEST 2021


From: Érico Nogueira <erico.erc at gmail.com>

* configure.ac: Loosen the condition of using gen-lock-obj.sh for
  Linux. Commit 1fb90a7da186ee2ee098a666f6f3a35bb1720e59 tightened this
  check, but the objdump+awk trick used here works with musl toolchains
  as well as it does with glibc ones. Furthermore, uClibc targets that
  have pthreads available can also take advantage of it.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 53a343b..7b66133 100644
--- a/configure.ac
+++ b/configure.ac
@@ -603,7 +603,7 @@ if test x"$gl_use_threads" = xno; then
   AC_MSG_NOTICE([generated src/lock-obj-pub.native.h for $host])
 elif test x$cross_compiling = xyes; then
   case $host in
-    *-*-linux-gnu*)
+    *-*-linux*)
     AC_CHECK_TOOL(OBJDUMP, [objdump])
     if test -n "$OBJDUMP"; then
       lock_obj_h_generated=yes
-- 
2.31.1




More information about the Gnupg-devel mailing list