frontend/Makefile.am part of faad2-2.8.5-libmp4ff-shared-lib.patch contains: -faad_LDADD = $(top_builddir)/libfaad/libfaad.la +faad_LDADD = $(top_builddir)/libfaad/libfaad.la \ + $(top_builddir)/common/mp4ff/libmp4ff.la This is unnecessary. When -Wl,--as-needed is used, /usr/bin/faad is not linked against libmp4ff.so.0 library. Building succeeds after deleting frontend/Makefile.am part of faad2-2.8.5-libmp4ff-shared-lib.patch.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa99c91b5fce906696ce4d0d7cce90c765baaecb commit aa99c91b5fce906696ce4d0d7cce90c765baaecb Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2017-10-18 06:38:50 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2017-10-18 06:39:49 +0000 media-libs/faad2: Removed unnecessary part of patch. Bug: https://bugs.gentoo.org/634608 Package-Manager: Portage-2.3.11, Repoman-2.3.3 media-libs/faad2/files/faad2-2.8.5-libmp4ff-shared-lib.patch | 12 ------------ 1 file changed, 12 deletions(-)}