package/ruby: fix build failure due to gcc bug 83143
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Tue, 31 Aug 2021 17:38:00 +0000 (19:38 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 11 Sep 2021 16:19:09 +0000 (18:19 +0200)
commit4e070082495c1686b2b207db7fe7720271dc7d86
tree160aee298c3bafd078dc9e381822a832541a9d18
parent949a66e660b29917e5890e3ea07dd7c10095f00c
package/ruby: fix build failure due to gcc bug 83143

The ruby package exhibits gcc bug 83143 when built for the SH4 architecture
with optimization enabled, which causes a build failure.

Differentely from other packages in Buildroot where we work around this
gcc bug by setting optimization to -O0 we can use -freorder-blocks-algorithm=simple
as suggested here [1] if BR2_TOOLCHAIN_HAS_GCC_BUG_83143=y.

Fixes:
http://autobuild.buildroot.net/results/f57/f5742e7fb6e8142bcdb53b7f4f5e9c1bea3558cd/

[1]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83143#c15

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/ruby/ruby.mk