Bug #7265

r37414 breaks building with BSD make and nmake.

Added by Usaku NAKAMURA over 1 year ago. Updated over 1 year ago.

[ruby-dev:46358]
Status:Closed
Priority:Normal
Assignee:Nobuyoshi Nakada
Category:build
Target version:2.0.0
ruby -v:r37414 Backport:

Description

IRCでなかださんにも伝えましたけど、直さないで寝たっぽいので

チケット化しておきます。

表題の通りですが、例えばBSD makeで普通にビルドしようとすると
...
compiling bigdecimal.c
linking shared-object bigdecimal.so
make: don't know how to make ./.@RUBYLIBDIR@!bigdecimal.time. Stop

make: stopped in /home/usa/tmp/trunk/ext/bigdecimal
*** Error code 2
...
といった感じでエラーが出てビルドできません。
nmakeでも同じところでエラーが出ます。

要するに ! が悪いので - あたりに変えれば通りますが、そもそも、
この生成されている文字列を見て何がしたいのか理解できる人が
なかださん以外に存在するとも思えないので、r36815 のあたりから
ちょっと考え直していただきたく思います。


Related issues

Related to ruby-trunk - Bug #6904: make -j all fails (sometimes) Closed 08/22/2012

Associated revisions

Revision 37426
Added by Nobuyoshi Nakada over 1 year ago

mkmf.rb: timestamp_file

  • lib/mkmf.rb (MakeMakefile#timestamp_file): use .-. instead of !, a special character of NMAKE and BSD make. [Bug #7265]

History

#1 Updated by Nobuyoshi Nakada over 1 year ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r37426.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


mkmf.rb: timestamp_file

  • lib/mkmf.rb (MakeMakefile#timestamp_file): use .-. instead of !, a special character of NMAKE and BSD make. [Bug #7265]

Also available in: Atom PDF