[FFmpeg-devel] how to build ffmpeg with -O0 instead of -O1

Michael Niedermayer michael at niedermayer.cc
Mon Mar 21 14:47:51 CET 2016


On Mon, Mar 21, 2016 at 08:37:25PM +0800, qw wrote:
> Hi,
>  
> I want to build ffmpeg without optimization options, which means compiling flags uses O0 instead of O1-O3. I use the following command to build ffmpeg, where O1 is used in config.mak.
>  
> ./configure --enable-debug --disable-optimizations ......
> 
> I want to disable all optimization options to debug ffmpeg/ffmpeg_g program. If I change optimization options in config.mak, i.e. using O0 instead of O1, there will be some error messages during the building process:
>  
> libavutil/libavutil.a(cpu.o): In function `av_get_cpu_flags':
> /export/qiang/sourceCode/ffmpeg-2.8.3/libavutil/cpu.c:82: undefined reference to `ff_get_cpu_flags_aarch64'
> /export/qiang/sourceCode/ffmpeg-2.8.3/libavutil/cpu.c:84: undefined reference to `ff_get_cpu_flags_arm'
> /export/qiang/sourceCode/ffmpeg-2.8.3/libavutil/cpu.c:86: undefined reference to `ff_get_cpu_flags_ppc'
> 
> How to build ffmpeg with O0 option?

what compiler are you using ?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160321/f7e386cc/attachment.sig>


More information about the ffmpeg-devel mailing list