Summary: | dev-ruby/fxruby-1.2.4 (and all other versions of fxruby) force compile at -O0 for no apparent reason. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ferris McCormick (RETIRED) <fmccor> |
Component: | [OLD] Library | Assignee: | Gentoo Ruby Team <ruby> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | sparc |
Priority: | Normal | ||
Version: | 2004.3 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Patch to apply in dev-ruby/fxruby to let fxruby use ruby's CFLAGS instead of forcing -O0. |
Description
Ferris McCormick (RETIRED)
![]() Created attachment 54712 [details, diff]
Patch to apply in dev-ruby/fxruby to let fxruby use ruby's CFLAGS instead of forcing -O0.
If in dev-ruby/fxruby you patch thus: patch -p0 -z- -b < fxruby-1.2.4.patch,
then fxruby will not
change the CFlAGS passed in by ruby to include -O0. This results in much
longer compile times,
but smaller and faster fox interface for ruby.
Tested with 1.2.4, but the same sort of thing applies to all versions of fxruby, really. ferris, please commit this patch if you're still up to it. (In reply to comment #3) > ferris, please commit this patch if you're still up to it. Done for fxruby-1.2.2, fxruby-1.2.6. Update uses sed instead of a patch file, mirroring the unpack function in 1.2.6. Both versions build without forcing '-O0', install, and run the examples correctly. (Testing -1.2.6 requires some package unmasking, of course.) Notice that the example for textedit does not run with fxruby-1.2.xx, but this appears to be because of a change in the UI for ruby/fox, and is independent of this enhancement. |