1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/mkmf.rb (rm_f): get rid of NUL.

* lib/mkmf.rb (init_mkmf): set default $LDFLAGS.  Patch by Michal
  Suchanek <hramrach at centrum.cz>.  [ruby-talk:216256]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2006-09-25 13:26:40 +00:00
parent b96af08add
commit c7908b19b0
2 changed files with 8 additions and 3 deletions

View file

@ -1,7 +1,12 @@
Mon Sep 25 21:24:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
Mon Sep 25 22:26:26 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (rb_path_end): skip root directory. fixed: [ruby-core:08913]
* lib/mkmf.rb (rm_f): get rid of NUL.
* lib/mkmf.rb (init_mkmf): set default $LDFLAGS. Patch by Michal
Suchanek <hramrach at centrum.cz>. [ruby-talk:216256]
Mon Sep 25 21:24:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* sample/test.rb: "print nil" now prints empty string.

View file

@ -140,7 +140,7 @@ class Array
end
def rm_f(*files)
FileUtils.rm_f(Dir[files.join("\0")])
FileUtils.rm_f(Dir[*files])
end
def modified?(target, times)
@ -1433,7 +1433,7 @@ def init_mkmf(config = CONFIG)
$CFLAGS = with_config("cflags", arg_config("CFLAGS", config["CFLAGS"])).dup
$ARCH_FLAG = with_config("arch_flag", arg_config("ARCH_FLAG", config["ARCH_FLAG"])).dup
$CPPFLAGS = with_config("cppflags", arg_config("CPPFLAGS", config["CPPFLAGS"])).dup
$LDFLAGS = (with_config("ldflags") || "").dup
$LDFLAGS = with_config("ldflags", arg_config("LDFLAGS", config["LDFLAGS"])).dup
$INCFLAGS = "-I$(topdir) -I$(hdrdir) -I$(srcdir)"
$DLDFLAGS = with_config("dldflags", arg_config("DLDFLAGS", config["DLDFLAGS"])).dup
$LIBEXT = config['LIBEXT'].dup