[Libav-user] if(0) and unresolved symbols.
Carl Eugen Hoyos
ceffmpeg at gmail.com
Mon Jun 22 17:16:01 EEST 2020
> Am 22.06.2020 um 14:26 schrieb Joel Linn <jl at conductive.de>:
> I want to use components statically. There is a number of places where functions are called conditionally based on config defines, for example in libavutil/cpu.c get_cpu_flags():
> if (ARCH_PPC)
> return ff_get_cpu_flags_ppc();
> I can't use the makefiles so needed to
(You mean you don’t want to use them)
> "translate" them into our build system for the parts I need.
> However I get unresolved symbols. What am I missing? I'm pretty sure the makefiles don't build the objects that define those unused functions either.
You need to enable „dead code elimination“, FFmpeg cannot be compiled without it, most supported compilers do not allow to disable it.
> Thanks in advance,
> Libav-user mailing list
> Libav-user at ffmpeg.org
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".
More information about the Libav-user