diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-02-01 14:02:46 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-03 09:05:14 +0000 |
| commit | d2a050f8e3bae95f3ed953a53a55d41cdc94844f (patch) | |
| tree | 754f03ab0284155dc13f24352a90f1812cbb0a24 /meta/recipes-devtools/ruby/ruby_3.1.0.bb | |
| parent | f91604daee1b79aa41307a28bf38dd0a2e2c82a4 (diff) | |
| download | poky-d2a050f8e3bae95f3ed953a53a55d41cdc94844f.tar.gz | |
ruby: Fix build on riscv/musl
This fixes a build issue that started with 3.1 upgrade
Fixes
| ../ruby-3.1.0/vm_dump.c:916:38: error: use of undeclared identifier 'REG_S1'
| dump_machine_register(mctx->__gregs[REG_S1], "s1");
(From OE-Core rev: 1b0a88b6c31f85d70045a61f843302992ae7f94e)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/ruby/ruby_3.1.0.bb')
| -rw-r--r-- | meta/recipes-devtools/ruby/ruby_3.1.0.bb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/meta/recipes-devtools/ruby/ruby_3.1.0.bb b/meta/recipes-devtools/ruby/ruby_3.1.0.bb index e250164d2c..7a04a36432 100644 --- a/meta/recipes-devtools/ruby/ruby_3.1.0.bb +++ b/meta/recipes-devtools/ruby/ruby_3.1.0.bb | |||
| @@ -11,6 +11,7 @@ SRC_URI += " \ | |||
| 11 | file://0004-lib-mkmf.rb-sort-list-of-object-files-in-generated-M.patch \ | 11 | file://0004-lib-mkmf.rb-sort-list-of-object-files-in-generated-M.patch \ |
| 12 | file://0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch \ | 12 | file://0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch \ |
| 13 | file://0006-Make-gemspecs-reproducible.patch \ | 13 | file://0006-Make-gemspecs-reproducible.patch \ |
| 14 | file://0001-vm_dump.c-Define-REG_S1-and-REG_S2-for-musl-riscv.patch \ | ||
| 14 | " | 15 | " |
| 15 | 16 | ||
| 16 | SRC_URI[sha256sum] = "50a0504c6edcb4d61ce6b8cfdbddaa95707195fab0ecd7b5e92654b2a9412854" | 17 | SRC_URI[sha256sum] = "50a0504c6edcb4d61ce6b8cfdbddaa95707195fab0ecd7b5e92654b2a9412854" |
| @@ -36,18 +37,10 @@ EXTRA_OECONF = "\ | |||
| 36 | " | 37 | " |
| 37 | 38 | ||
| 38 | EXTRA_OECONF:append:libc-musl = "\ | 39 | EXTRA_OECONF:append:libc-musl = "\ |
| 39 | LIBS='-lucontext' \ | ||
| 40 | ac_cv_func_isnan=yes \ | 40 | ac_cv_func_isnan=yes \ |
| 41 | ac_cv_func_isinf=yes \ | 41 | ac_cv_func_isinf=yes \ |
| 42 | " | 42 | " |
| 43 | 43 | ||
| 44 | EXTRA_OECONF:append:libc-musl:riscv64 = "\ | ||
| 45 | --with-coroutine=copy \ | ||
| 46 | " | ||
| 47 | EXTRA_OECONF:append:libc-musl:riscv32 = "\ | ||
| 48 | --with-coroutine=copy \ | ||
| 49 | " | ||
| 50 | |||
| 51 | PARALLEL_MAKEINST = "" | 44 | PARALLEL_MAKEINST = "" |
| 52 | 45 | ||
| 53 | do_install:append:class-target () { | 46 | do_install:append:class-target () { |
