mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
dosfsutils: Properly fix iconv linking
Necessary when using libiconv.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry-picked from fbfe49d7ff)
This commit is contained in:
26
utils/dosfstools/patches/010-iconv.patch
Normal file
26
utils/dosfstools/patches/010-iconv.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
From e18bcc65d5772e518c6496b439bad8a986f7e434 Mon Sep 17 00:00:00 2001
|
||||
From: Rosen Penev <rosenp@gmail.com>
|
||||
Date: Thu, 20 Jun 2019 15:18:19 -0700
|
||||
Subject: [PATCH] configure: Fix iconv check for cross compilation
|
||||
|
||||
AC_CHECK_LIB is more friendly towards cross-compilation.
|
||||
|
||||
Added check for libiconv_open as that can be used when the libc lacks iconv.
|
||||
---
|
||||
configure.ac | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 07e8703..1b09964 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -75,7 +75,8 @@ if test "x$with_udev" != "xno"; then
|
||||
[true])
|
||||
fi
|
||||
|
||||
-AC_SEARCH_LIBS(iconv_open, iconv)
|
||||
+AC_CHECK_LIB(iconv, iconv_open)
|
||||
+AC_CHECK_LIB(iconv, libiconv_open)
|
||||
|
||||
# xxd (distributed with vim) is used in the testsuite
|
||||
AC_CHECK_PROG([XXD_FOUND], [xxd], [yes])
|
||||
Reference in New Issue
Block a user