Skip to contentSkip to conversation

package/ruby: drop useless SuperH CFLAGS tweaks

PATCH New Thomas Petazzoni 2 participants 2 messages Sep 30, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ruby: drop useless SuperH CFLAGS tweaks

We have dropped a long time CodeBench 2019.09 toolchains for SuperH, and with recent toolchains, Ruby at -Os builds perfectly fine, so there's no reason to keep this work-around.

---
 package/ruby/ruby.mk | 9 ---------
 1 file changed, 9 deletions(-)
package/ruby/ruby.mk +0 -9
index 6f8cb319cb..d138aaaa1a 100644
@@ -20,15 +20,6 @@ HOST_RUBY_CONF_OPTS = \
 RUBY_LICENSE = Ruby or BSD-2-Clause, BSD-3-Clause, others
 RUBY_LICENSE_FILES = LEGAL COPYING BSDL
 
-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),y)
-RUBY_CFLAGS += -O2
-endif
-RUBY_CONF_ENV = CFLAGS="$(RUBY_CFLAGS)"
-
 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
 # On uClibc, finite, isinf and isnan are not directly implemented as
 # functions.  Instead math.h #define's these to __finite, __isinf and
Signature · 1 line
2.26.2
#1 lore raw

PATCH 1/1 package/ruby: drop useless SuperH CFLAGS tweaks

Thomas, All,

On 2020-09-30 22:41 +0200, Thomas Petazzoni spake thusly:

Quoted 1 line

We have dropped a long time CodeBench 2019.09 toolchains for SuperH,

I reworded this part of the sentence a little bit, fixed the version (2012.09, not 2019.09), and applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 35 lines

and with recent toolchains, Ruby at -Os builds perfectly fine, so there's no reason to keep this work-around.

---
 package/ruby/ruby.mk | 9 ---------
 1 file changed, 9 deletions(-)
package/ruby/ruby.mk +0 -9
index 6f8cb319cb..d138aaaa1a 100644
@@ -20,15 +20,6 @@ HOST_RUBY_CONF_OPTS = \
 RUBY_LICENSE = Ruby or BSD-2-Clause, BSD-3-Clause, others
 RUBY_LICENSE_FILES = LEGAL COPYING BSDL
 
-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),y)
-RUBY_CFLAGS += -O2
-endif
-RUBY_CONF_ENV = CFLAGS="$(RUBY_CFLAGS)"
-
 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
 # On uClibc, finite, isinf and isnan are not directly implemented as
 # functions.  Instead math.h #define's these to __finite, __isinf and
Signature · 6 lines
2.26.2

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'