summaryrefslogtreecommitdiffstats
path: root/package/ruby/ruby.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/ruby/ruby.mk')
-rw-r--r--package/ruby/ruby.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/ruby/ruby.mk b/package/ruby/ruby.mk
index 3b8310c112..f3f80475b8 100644
--- a/package/ruby/ruby.mk
+++ b/package/ruby/ruby.mk
@@ -24,7 +24,7 @@ RUBY_CFLAGS = $(TARGET_CFLAGS)
# With some SuperH toolchains (like Sourcery CodeBench 2012.09), ruby fails to
# build with 'pcrel too far'. This seems to be caused by the -Os option we pass
# by default. To fix the problem, use standard -O2 optimization instead.
-ifeq ($(BR2_sh)$(BR2_sh64),y)
+ifeq ($(BR2_sh),y)
RUBY_CFLAGS += -O2
endif
RUBY_CONF_ENV = CFLAGS="$(RUBY_CFLAGS)"
OpenPOWER on IntegriCloud