media-video/ffmpeg: Fix chromium build in 9999
authorJames Le Cuirot <chewi@gentoo.org>
Tue, 19 Dec 2017 23:42:15 +0000 (23:42 +0000)
committerJames Le Cuirot <chewi@gentoo.org>
Tue, 19 Dec 2017 23:42:15 +0000 (23:42 +0000)
Some libraries were missing from the final link. This just involved
referencing FF_EXTRALIBS instead of FFEXTRALIBS. Also tested with
3.3.3.

Package-Manager: Portage-2.3.19, Repoman-2.3.6

media-video/ffmpeg/files/chromium.patch

index 60a3e5d6cb996b65c6640c783c704fd9c71bf644..307f31f4a3a5b3f0ef1f525a994f9cd883b228e9 100644 (file)
@@ -14,7 +14,7 @@ index 0000000..992cf3c
 +LIBFFMPEG_LINK = $(LD) -shared -Wl,-soname,$(LIBFFMPEG) -Wl,-Bsymbolic -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--gc-sections $(LDFLAGS) $(LDLIBFLAGS) -o $(LIBFFMPEG)
 +
 +libffmpeg-: libavcodec/$(LIBPREF)avcodec$(LIBSUF) libavformat/$(LIBPREF)avformat$(LIBSUF) libavutil/$(LIBPREF)avutil$(LIBSUF) libswresample/$(LIBPREF)swresample$(LIBSUF)
-+      $(LIBFFMPEG_LINK) -Wl,--whole-archive $^ -Wl,--no-whole-archive $(FFEXTRALIBS)
++      $(LIBFFMPEG_LINK) -Wl,--whole-archive $^ -Wl,--no-whole-archive $(FF_EXTRALIBS)
 +
 +libffmpeg-yes: libavcodec/$(SLIBPREF)avcodec$(SLIBSUF) libavformat/$(SLIBPREF)avformat$(SLIBSUF) libavutil/$(SLIBPREF)avutil$(SLIBSUF)
 +      $(LIBFFMPEG_LINK) -Wl,--no-as-needed -lavcodec -lavformat -lavutil