[FFmpeg-devel] Configure with --cpu=host and Clang
Michael Niedermayer
michael at niedermayer.cc
Wed Dec 30 23:27:02 CET 2015
On Mon, Dec 14, 2015 at 06:11:00PM +0300, yukari yakumo wrote:
> Hi everyone!
> I'm Gentoo Linux user and currently I play with Clang as default compiler.
> And currently I tried to build ffmpeg 2.3.8 with Clang 3.7.0 and -march=native in C(XX)FLAGS (ffmpeg-2.3.8.ebuild automatically convert this to --cpu=host configure flag).
> But I get `--cpu=host not supported with compiler clang` error on executing ./configure
> It's seems like output of clang test compilation different from gcc output.
> I make a little patch that you can fing in attachment that fix this issue. This is very similar to gcc check_native method.
>
> Thanks!
> configure | 11 +++++++++++
> 1 file changed, 11 insertions(+)
> a1ad26982b0b57bfe27a36d2929971230e8366ea ffmpeg_clang_march_native.patch
applied
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- 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/20151230/69af4eed/attachment.sig>
More information about the ffmpeg-devel
mailing list