Skip to content

Commit

Permalink
binutils: remove libdep.a which leads to errors when using ar
Browse files Browse the repository at this point in the history
Not sure if this needs to be fixed or just isn't useful on Windows.

Fixes msys2#7890
  • Loading branch information
lazka committed Mar 31, 2021
1 parent 020bdf2 commit d7aec6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mingw-w64-binutils/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _realname=binutils
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=2.36.1
pkgrel=1
pkgrel=2
pkgdesc="A set of programs to assemble and manipulate binary and object files (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64')
Expand Down Expand Up @@ -109,6 +109,9 @@ package() {
mv ${pkgdir}${MINGW_PREFIX}/include/*.h ${pkgdir}${MINGW_PREFIX}/include/${_realname}
mv ${pkgdir}${MINGW_PREFIX}/lib/*.a ${pkgdir}${MINGW_PREFIX}/lib/${_realname}

# https://github.com/msys2/MINGW-packages/issues/7890
rm "${pkgdir}${MINGW_PREFIX}/lib/bfd-plugins/libdep.a"

find ${pkgdir}${MINGW_PREFIX}/share -type f -iname "opcodes.mo" -o -iname "bfd.mo" | xargs -rtl1 rm

install -Dm644 ${srcdir}/${_realname}-${pkgver}/COPYING ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING
Expand Down

0 comments on commit d7aec6a

Please sign in to comment.