ASR_BASE
Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/external/subpack/libs/libgpg-error/patches/001-cross-compile-fix.patch b/external/subpack/libs/libgpg-error/patches/001-cross-compile-fix.patch
new file mode 100644
index 0000000..606cdd3
--- /dev/null
+++ b/external/subpack/libs/libgpg-error/patches/001-cross-compile-fix.patch
@@ -0,0 +1,24 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -74,6 +74,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