Mailing List Archive

[PATCH libgpg-error] build: Restore support for cross building to musl targets.
From: √Črico Nogueira <erico.erc@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


_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-devel
[PATCH libgpg-error] build: Restore support for cross building to musl targets. [ In reply to ]
From: √Črico Nogueira <erico.erc@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


_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-devel