[FFmpeg-user] how to build ffmpeg into one static program without any dependent dynamic library

Reindl Harald h.reindl at thelounge.net
Mon Jul 9 13:01:14 EEST 2018


Am 09.07.2018 um 11:39 schrieb Moritz Barsnick:
>> Can I specify which static libraries are used and which dynamic libraries are used to build ffmpeg?
> 
> If both static and dynamic libraries are found, the linkers will by
> default prefer the dynamic one.
> 
> Choices can be manipulated, but no build system I know of supports
> this, because it would make ./configure and the Makefiles too
> complicated

--extra-ldflags='-I/rpmbuild/BUILD/ffmpeg-20180617/x264-static
-L/rpmbuild/BUILD/ffmpeg-20180617/x264-static -ldl'

this links my /rpmbuild/BUILD/ffmpeg-20180617/x264-static/x264.a built
in the first step of 'ffmpeg-latest.spec' and on that machine x264-devel
from the distribution is present too

see my first repsone to that question with the wholke spec-file


More information about the ffmpeg-user mailing list