]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
lame: don't use -march=native when building with clang
authorRoss Burton <ross.burton@arm.com>
Wed, 24 Sep 2025 12:07:35 +0000 (13:07 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Sep 2025 09:56:55 +0000 (10:56 +0100)
commitd6f0e26ccf19872e1f4eebb346d76c7bff87ba2a
treecc322af847da854cd62076b8f36c894c91665c36
parent0d039d959c51f3402631014139c4d6208416b1b7
lame: don't use -march=native when building with clang

Because of a logic error, lame's configure always passes -march=native
when building with clang.

This is a terrible idea in general as it's not often your build machine
and target hardware aligns, and leads to some amusing errors:

  unknown target CPU 'neoverse-n1'
  note: valid target CPU values are: i386, i486, ...

Move the HAVE_CLANG block up into the FULL_OPTIMIZATION case, alongside
HAVE_GCC.  This option is never enabled (as it's basically "use native")
so resolves the build failure.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-multimedia/lame/lame/clang.patch [new file with mode: 0644]
meta/recipes-multimedia/lame/lame_3.100.bb