[#7064] How to put version number of shared library? — Ryo HAYASAKA <hayasaka@...21.u-aizu.ac.jp>
早坂@会津大学です。
4 messages
1999/06/02
[#7082] [BUG] unpack('m') — 民斗 <tommy@...>
民斗です。
6 messages
1999/06/07
[#7091] [BUG?] load in thread — keiju@... (Keiju ISHITSUKA)
けいじゅ@日本ラショナルソフトウェアです.
7 messages
1999/06/09
[#7092] Re: [BUG?] load in thread
— matz@... (Yukihiro Matsumoto)
1999/06/09
まつもと ゆきひろです
[#7102] Ruby 1.3.4-990611 — Yukihiro Matsumoto <matz@...>
Ruby 1.3.4-990611 is out, check out:
20 messages
1999/06/11
[#7108] Re: Ruby 1.3.4-990611
— Koji Arai <JCA02266@...>
1999/06/12
新井です。
[#7123] Re: Ruby 1.3.4-990611
— nagai@...
1999/06/16
永井@知能.九工大です.
[#7110] --enable-shared support — Katsuyuki Komatsu <komatsu@...>
小松です。
11 messages
1999/06/14
[#7111] Re: --enable-shared support
— WATANABE Tetsuya <tetsu@...>
1999/06/15
渡辺哲也です。
[#7173] [BUG] <<`HERE_DOC` — Koji Arai <JCA02266@...>
新井です。
7 messages
1999/06/22
[#7178] [PATCH] rubydb3x.el, ruby-mode.el — nobu.nakada@...
中田です。
7 messages
1999/06/22
[#7181] acknowledgement — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
6 messages
1999/06/23
[#7210] Ruby 1.3.4-990624 — Yukihiro Matsumoto <matz@...>
Ruby 1.3.4-990624 is out, check out:
7 messages
1999/06/24
[#7223] Ruby 1.3.4-990625 — Yukihiro Matsumoto <matz@...>
Ruby 1.3.4-990625 is out, check out:
14 messages
1999/06/25
[#7224] -Wl,-rpath on Linux (Re: Ruby 1.3.4-990625)
— Ryo HAYASAKA <hayasaka@...21.u-aizu.ac.jp>
1999/06/25
早坂@会津大学です。
[#7225] Re: -Wl,-rpath on Linux (Re: Ruby 1.3.4-990625)
— Katsuyuki Komatsu <komatsu@...>
1999/06/25
小松です。
[#7226] Re: -Wl,-rpath on Linux (Re: Ruby 1.3.4-990625)
— Katsuyuki Komatsu <komatsu@...>
1999/06/25
小松です。
[#7227] Re: -Wl,-rpath on Linux (Re: Ruby 1.3.4-990625)
— Katsuyuki Komatsu <komatsu@...>
1999/06/25
小松です。
[#7253] Re: Ruby 1.3.4-990625 — SHIROYAMA Takayuki <psi@...>
9 messages
1999/06/29
[#7258] TkVariable — Koji Arai <JCA02266@...>
新井です。
6 messages
1999/06/29
[ruby-dev:7238] Re: -Wl,-rpath on Linux (Re: Ruby 1.3.4-990625)
From:
Katsuyuki Komatsu <komatsu@...>
Date:
1999-06-28 03:31:32 UTC
List:
ruby-dev #7238
小松です。
In message of [ruby-dev:7231] Re: -Wl,-rpath on Linux (Re: Ruby 1.3.4-990625)
on 1999/6/26 00:12:20 WATANABE Hirofumi <eban@os.rim.or.jp> wrote:
|わたしも LD_PRELOAD 作戦がいいかなと思います.
|で test のときだけ使うようにする.
なるほどLD_PRELOADでしたか。
立石さん、わたなべさんありがとうございます。
ということで、[ruby-dev:7231]に[ruby-dev:7228]を
マージして以下のような感じでどうでしょう。
# PLATFORMはobsolete constantsか。
[ruby-list:15109]を見てあわててパッチを出したのが失敗でした。
申し訳ない。
しかし、sample/test.rbの変更と重なって、問題点がうまく検出
できたのはなかなかうまいタイミングというべきでしょうね。
Index: rubytest.rb
===================================================================
RCS file: /home/cvs/ruby/rubytest.rb,v
retrieving revision 1.1.1.2.2.1
diff -u -r1.1.1.2.2.1 rubytest.rb
--- rubytest.rb 1999/02/10 08:44:28 1.1.1.2.2.1
+++ rubytest.rb 1999/06/28 03:21:41
@@ -1,11 +1,26 @@
#! ./miniruby -I.
-x = ENV["LD_LIBRARY_PATH"]
-x = x ? x+":." : "."
-ENV["LD_LIBRARY_PATH"] = x
-
require 'rbconfig'
include Config
+
+if File.exist? CONFIG['LIBRUBY_SO']
+ case RUBY_PLATFORM
+ when /-hpux/
+ dldpath = "SHLIB_PATH"
+ when /-aix/
+ dldpath = "LIBPATH"
+ else
+ dldpath = "LD_LIBRARY_PATH"
+ end
+ x = ENV[dldpath]
+ x = x ? ".:"+x : "."
+ ENV[dldpath] = x
+end
+
+if /linux/ === RUBY_PLATFORM and File.exist? CONFIG['LIBRUBY_SO']
+ ENV["LD_PRELOAD"] ||= ""
+ ENV["LD_PRELOAD"] += " ./#{CONFIG['LIBRUBY_SO']}"
+end
$stderr.reopen($stdout)
error = ''
--
小松克行 / Katsuyuki Komatsu <komatsu@sarion.co.jp>