[FFmpeg-devel] Configure with --cpu=host and Clang

yukari yakumo yukariin at yandex.ru
Sat Mar 26 13:10:58 CET 2016


Hi everyone!
I'm Gentoo Linux user and currently I play with Clang as default compiler.
And currently I tried to build ffmpeg 2.8.6 with Clang 3.9.0 and `-march=native` in C(XX)FLAGS (ffmpeg-2.8.6.ebuild automatically convert this to `--cpu=host` configure flag).
But I get `--cpu=host not supported with compiler clang` error on configure phase. It's seems like output of clang test compilation different from GCC's output.
I make a little patch that you can find in attachment to fix this issue. This is very similar to GCC's check_native method.
Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg_clang_march_native.patch
Type: text/x-diff
Size: 583 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160326/f94c2de3/attachment.patch>


More information about the ffmpeg-devel mailing list