なかだです。

--with-static-linked-extでコンパイルすると、-rオプションのエラー
メッセージがおかしくなります。

  $ ./i686-linux-static/ruby -rnone -e0
  tcltklib.so: No such file to load -- none (LoadError)


* ruby.c (require_libraries): restore source file/line after
  statically linked extensions initialized.

Index: ruby.c =================================================================== RCS file: /cvs/ruby/src/ruby/ruby.c,v retrieving revision 1.90 diff -u -2 -p -r1.90 ruby.c --- ruby.c 2 Apr 2004 02:36:47 -0000 1.90 +++ ruby.c 6 Apr 2004 09:57:34 -0000 @@ -347,9 +416,12 @@ require_libraries() struct req_list *tmp; - Init_ext(); /* should be called here for some reason :-( */ save[0] = ruby_eval_tree; save[1] = ruby_eval_tree_begin; save[2] = NEW_BEGIN(0); ruby_eval_tree = ruby_eval_tree_begin = 0; + ruby_current_node = 0; + Init_ext(); /* should be called here for some reason :-( */ + ruby_current_node = save[2]; + ruby_set_current_source(); req_list_last = 0; while (list) {
-- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦