0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-07 09:19:51 +00:00
packages/libs/libgpg-error/patches/001-cross-compile-fix.patch
W. Michael Petullo 5775921d43 libgpg-error: update to 1.51
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2025-01-03 00:41:22 -08:00

25 lines
568 B
Diff

--- a/configure.ac
+++ b/configure.ac
@@ -76,6 +76,21 @@ AM_SILENT_RULES
AC_CANONICAL_HOST
AB_INIT
+case "${host}" in
+ x86_64-openwrt-linux-gnu|i?86-openwrt-linux-gnu)
+ host=$(echo $host | sed 's/openwrt/pc/g')
+ ;;
+ arm-openwrt-linux-gnu|armeb-openwrt-linux-gnu)
+ host=arm-unknown-linux-gnueabi
+ ;;
+ mips64-openwrt-linux-gnu)
+ host=mips64el-unknown-linux-gnuabi64
+ ;;
+ *)
+ host=$(echo $host | sed 's/openwrt/unknown/g')
+ ;;
+esac
+
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O