mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* README.EXT, README.EXT.ja: You shouldn't choose ``conftest.c'' as a
name of a source file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1a3950e294
commit
74535bd643
3 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Jan 20 16:11:00 2011 Kenta Murata <mrkn@mrkn.jp>
|
||||||
|
|
||||||
|
* README.EXT, README.EXT.ja: You shouldn't choose ``conftest.c'' as a
|
||||||
|
name of a source file.
|
||||||
|
|
||||||
Thu Jan 20 12:15:44 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
Thu Jan 20 12:15:44 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* configure.in: Add stdlib.h inclusion into rb_cv_negative_time_t
|
* configure.in: Add stdlib.h inclusion into rb_cv_negative_time_t
|
||||||
|
|
|
@ -607,6 +607,9 @@ has only one source file, choosing ``LIBRARY.c'' as a file name is
|
||||||
preferred. On the other hand, in case your library has multiple source
|
preferred. On the other hand, in case your library has multiple source
|
||||||
files, avoid choosing ``LIBRARY.c'' for a file name. It may conflict
|
files, avoid choosing ``LIBRARY.c'' for a file name. It may conflict
|
||||||
with an intermediate file ``LIBRARY.o'' on some platforms.
|
with an intermediate file ``LIBRARY.o'' on some platforms.
|
||||||
|
Note that some functions in mkmf library described below generate
|
||||||
|
a file ``conftest.c'' for checking with compilation. You shouldn't
|
||||||
|
choose ``conftest.c'' as a name of a source file.
|
||||||
|
|
||||||
Ruby will execute the initializing function named ``Init_LIBRARY'' in
|
Ruby will execute the initializing function named ``Init_LIBRARY'' in
|
||||||
the library. For example, ``Init_dbm()'' will be executed when loading
|
the library. For example, ``Init_dbm()'' will be executed when loading
|
||||||
|
|
|
@ -680,7 +680,10 @@ Ruby 1.1
|
||||||
言語のソースが複数の場合には逆に「ライブラリ名.c」というファ
|
言語のソースが複数の場合には逆に「ライブラリ名.c」というファ
|
||||||
イル名は避ける必要があります.オブジェクトファイルとモジュー
|
イル名は避ける必要があります.オブジェクトファイルとモジュー
|
||||||
ル生成時に中間的に生成される「ライブラリ名.o」というファイル
|
ル生成時に中間的に生成される「ライブラリ名.o」というファイル
|
||||||
とが衝突するからです.
|
とが衝突するからです.また,後述する mkmf ライブラリのいくつ
|
||||||
|
かの関数がコンパイルを要するテストのために「conftest.c」とい
|
||||||
|
うファイル名を使用することに注意してください.ソースファイル
|
||||||
|
名として「conftest.c」を使用してはなりません.
|
||||||
|
|
||||||
Rubyは拡張ライブラリをロードする時に「Init_ライブラリ名」と
|
Rubyは拡張ライブラリをロードする時に「Init_ライブラリ名」と
|
||||||
いう関数を自動的に実行します.dbmライブラリの場合「Init_dbm」
|
いう関数を自動的に実行します.dbmライブラリの場合「Init_dbm」
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue