[Libav-user] if(0) and unresolved symbols.

Joel Linn jl at conductive.de
Mon Jun 22 15:26:06 EEST 2020


Hi folks,

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 "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.

Thanks in advance,
Joel


More information about the Libav-user mailing list