[vlc-commits] [Git][videolan/vlc][master] contrib: zvbi: don't keep the full iconv path

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Apr 19 06:13:24 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
f0e3a36f by Steve Lhomme at 2024-04-19T05:23:54+00:00
contrib: zvbi: don't keep the full iconv path

It disturbs libtool.

- - - - -


2 changed files:

- + contrib/src/zvbi/0001-configure-hardcode-liconv-instead-of-the-full-path.patch
- contrib/src/zvbi/rules.mak


Changes:

=====================================
contrib/src/zvbi/0001-configure-hardcode-liconv-instead-of-the-full-path.patch
=====================================
@@ -0,0 +1,30 @@
+From 9d3e264119fdcbe0598fe637d18c66ebf0731cfc Mon Sep 17 00:00:00 2001
+From: Steve Lhomme <robux4 at ycbcr.xyz>
+Date: Tue, 16 Apr 2024 07:59:13 +0200
+Subject: [PATCH] configure: hardcode -liconv instead of the full path
+
+It disturbs libtool when adding a .a as a file to link with.
+
+png and libz are already hardcoded.
+---
+ configure.in | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/configure.in b/configure.in
+index 25e6aa7..62fd0c9 100644
+--- a/configure.in
++++ b/configure.in
+@@ -236,7 +236,9 @@ AM_ICONV_LINK
+ if test "x$am_cv_func_iconv" != xyes; then
+   AC_MSG_ERROR([iconv() not found])
+ fi
+-LIBS="$LIBS $LIBICONV"
++if test "$am_cv_lib_iconv" = yes; then
++LIBS="$LIBS -liconv"
++fi
+ 
+ dnl
+ dnl Check for png library.
+-- 
+2.37.3.windows.1
+


=====================================
contrib/src/zvbi/rules.mak
=====================================
@@ -27,6 +27,8 @@ endif
 ifdef HAVE_ANDROID
 	$(APPLY) $(SRC)/zvbi/zvbi-android.patch
 endif
+	# hardcode -liconv instead of the full path
+	$(APPLY) $(SRC)/zvbi/0001-configure-hardcode-liconv-instead-of-the-full-path.patch
 	# check for pthread_create in pthreads as well
 	sed -i.orig "s/AC_CHECK_LIB(pthread, pthread_create,,/AC_SEARCH_LIBS([pthread_create], [pthread pthreads],,/" $(UNPACK_DIR)/configure.in
 	$(MOVE)
@@ -56,5 +58,4 @@ endif
 	+$(MAKEBUILD) SUBDIRS=.
 	+$(MAKEBUILD) -C src install
 	+$(MAKEBUILD) SUBDIRS=. install
-	sed -i.orig -e "s/\/[^ ]*libiconv.a/-liconv/" $(PREFIX)/lib/pkgconfig/zvbi-0.2.pc
 	touch $@



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f0e3a36f562a23fa19be0e84d6a9dc5499433ceb

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f0e3a36f562a23fa19be0e84d6a9dc5499433ceb
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list