From: IWAMURO Motonori Date: 2002-01-25T19:08:07+09:00 Subject: [ruby-list:33534] Re: [BUG] Can't compile ruby on Solaris2.6 岩室です。 In message "[ruby-list:33529] Re: [BUG] Can't compile ruby on Solaris2.6" on 02/01/25, WATANABE Hirofumi writes: > :-sharedが追加された経緯は[ruby-talk:24625]です。どう修正すべ > :きなのかは私にもわかりません。Sorasis 2.6ということですから、 > :[ruby-bugs PR#243]が関係しているのかもしれません。 > > 要するにSolarisの/usr/ccs/ldを使うときは-sharedをつけちゃい > けないということだと思うので、-sharedはGNU ldのときだけつけ > るようにしよう。 うーん、 > I've also included the shared library fix as well. This is required > for both the Solaris /usr/ccs/bin/ld as well as GNU ld. It has to > do with GCC constructing the command line passed to the linker. > Without the "-shared" it links in the startup C library as well as > setting a few different command line switches. This behaviour is > defined in the GCC specs file. てなこと書いてるので、Solarisのバージョンによっては /usr/ccs/bin/ld も 何か違うのかと思ったんですが、どーなんでしょう? (Solaris7以降の上で環 境を構築したことがないのでよくわからん) 私の環境ではわたなべさんの修正でもOKなのは確かなのですが。 -- 岩室元典 [E-Mail: vmi@kw.netlaputa.ne.jp / iwa@mmp.fujitsu.co.jp] 「しあわせでしたーーーーーーーーーーーーーーーーーーーーーーーーっ!!」 (「イリヤの空、UFOの夏 その2」秋山瑞人/電撃文庫)