From 93cc01cd94966fca5fedd6de2f11e1b371a817fe Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Thu, 6 Sep 2018 07:33:36 +0200 Subject: [PATCH] glib2: remove internal static libs from .pc files. Fixes #4364 (#4373) Filed upstream: https://gitlab.gnome.org/GNOME/glib/issues/1516 --- mingw-w64-glib2/PKGBUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mingw-w64-glib2/PKGBUILD b/mingw-w64-glib2/PKGBUILD index 0974c552a0..a47658c016 100644 --- a/mingw-w64-glib2/PKGBUILD +++ b/mingw-w64-glib2/PKGBUILD @@ -7,7 +7,7 @@ _realname=glib2 pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" pkgver=2.58.0 -pkgrel=1 +pkgrel=2 url="https://www.gtk.org/" arch=('any') pkgdesc="Common C routines used by GTK+ 2.4 and other libs (mingw-w64)" @@ -82,6 +82,11 @@ package() { for pcfile in "${pkgdir}${MINGW_PREFIX}"/lib/pkgconfig/*.pc; do sed -s "s|$(cygpath -m ${MINGW_PREFIX})|${MINGW_PREFIX}|g" -i "${pcfile}" + # https://github.com/Alexpux/MINGW-packages/issues/4364 + # https://gitlab.gnome.org/GNOME/glib/issues/1516 + sed -s "s| -lgiowin32||g" -i "${pcfile}" + sed -s "s| -lgnulib||g" -i "${pcfile}" + sed -s "s| -lcharset||g" -i "${pcfile}" done sed -s "s|$(cygpath -m ${MINGW_PREFIX})|${MINGW_PREFIX}|g" -i "${pkgdir}${MINGW_PREFIX}/bin/glib-gettextize"