nixpkgs/pkgs/by-name/li/libarchive/fix-pkg-config-iconv.patch
Emily 39809ed175
libarchive: add patch to fix .pc file
(cherry picked from commit 505530e3de)
(cherry picked from commit b5ca14bb98)
2024-11-30 15:11:37 +01:00

19 lines
687 B
Diff

diff --git a/configure.ac b/configure.ac
index 0fdfaf06a5..d08611848c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -453,13 +453,8 @@
AC_CHECK_HEADERS([iconv.h],[],[],[#include <stdlib.h>])
if test "x$am_cv_func_iconv" = "xyes"; then
AC_CHECK_HEADERS([localcharset.h])
- am_save_LIBS="$LIBS"
LIBS="${LIBS} ${LIBICONV}"
- if test -n "$LIBICONV"; then
- LIBSREQUIRED="$LIBSREQUIRED${LIBSREQUIRED:+ }iconv"
- fi
AC_CHECK_FUNCS([locale_charset])
- LIBS="${am_save_LIBS}"
if test "x$ac_cv_func_locale_charset" != "xyes"; then
# If locale_charset() is not in libiconv, we have to find libcharset.
AC_CHECK_LIB(charset,locale_charset)