diff options
author | Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com> | 2022-06-21 10:26:19 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-22 22:40:28 +0100 |
commit | 5ae7621978e291b35b330d6f790f0b12972b315c (patch) | |
tree | 226b755235799cada1f09c7e6cd322ed9c0a9ceb | |
parent | 296392f8e00bcc36e731edca753888e450b9c28c (diff) | |
download | poky-5ae7621978e291b35b330d6f790f0b12972b315c.tar.gz |
libffi: fix native build being not portable
Without `--with-gcc-arch=generic` libffi looks up the cpuid to automatically determine
which mtune/march to use. This makes the native sstate-cache unuseable since it's
possible to have a newer cpu building the recipe and the library being pulled from
another older cpu which doesn't have the instruction.
(From OE-Core rev: cddaecac1fdd4d033c2ff8ccaf1d60e1c598d5b7)
Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-support/libffi/libffi_3.4.2.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-support/libffi/libffi_3.4.2.bb b/meta/recipes-support/libffi/libffi_3.4.2.bb index 733fcc5e6c..71d9518baf 100644 --- a/meta/recipes-support/libffi/libffi_3.4.2.bb +++ b/meta/recipes-support/libffi/libffi_3.4.2.bb | |||
@@ -19,6 +19,7 @@ UPSTREAM_CHECK_URI = "https://github.com/libffi/libffi/releases/" | |||
19 | UPSTREAM_CHECK_REGEX = "libffi-(?P<pver>\d+(\.\d+)+)\.tar" | 19 | UPSTREAM_CHECK_REGEX = "libffi-(?P<pver>\d+(\.\d+)+)\.tar" |
20 | 20 | ||
21 | EXTRA_OECONF += "--disable-builddir --disable-exec-static-tramp" | 21 | EXTRA_OECONF += "--disable-builddir --disable-exec-static-tramp" |
22 | EXTRA_OECONF:class-native += "--with-gcc-arch=generic" | ||
22 | EXTRA_OEMAKE:class-target = "LIBTOOLFLAGS='--tag=CC'" | 23 | EXTRA_OEMAKE:class-target = "LIBTOOLFLAGS='--tag=CC'" |
23 | inherit autotools texinfo multilib_header | 24 | inherit autotools texinfo multilib_header |
24 | 25 | ||
@@ -33,4 +34,3 @@ FILES:${PN}-dev += "${libdir}/libffi-${PV}" | |||
33 | MIPS_INSTRUCTION_SET = "mips" | 34 | MIPS_INSTRUCTION_SET = "mips" |
34 | 35 | ||
35 | BBCLASSEXTEND = "native nativesdk" | 36 | BBCLASSEXTEND = "native nativesdk" |
36 | |||