Skip to content

Commit d3c8811

Browse files
committed
* lib/mkmf.rb (link_command, cc_command, cpp_command): do not expand
::CONFIG which is an alias of MAKEFILE_CONFIG. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent b60852e commit d3c8811

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Wed Aug 22 09:58:30 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* lib/mkmf.rb (link_command, cc_command, cpp_command): do not expand
4+
::CONFIG which is an alias of MAKEFILE_CONFIG.
5+
16
Wed Aug 22 09:55:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
27

38
* struct.c (rb_struct_init_copy): disallow changing the size.

lib/mkmf.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@ def try_do(src, command, &b)
266266
end
267267

268268
def link_command(ldflags, opt="", libpath=$DEFLIBPATH|$LIBPATH)
269-
Config::expand(TRY_LINK.dup,
270-
CONFIG.merge('hdrdir' => $hdrdir.quote,
269+
conf = Config::CONFIG.merge('hdrdir' => $hdrdir.quote,
271270
'src' => CONFTEST_C,
272271
'INCFLAGS' => $INCFLAGS,
273272
'CPPFLAGS' => $CPPFLAGS,
@@ -276,17 +275,20 @@ def link_command(ldflags, opt="", libpath=$DEFLIBPATH|$LIBPATH)
276275
'LDFLAGS' => "#$LDFLAGS #{ldflags}",
277276
'LIBPATH' => libpathflag(libpath),
278277
'LOCAL_LIBS' => "#$LOCAL_LIBS #$libs",
279-
'LIBS' => "#$LIBRUBYARG_STATIC #{opt} #$LIBS"))
278+
'LIBS' => "#$LIBRUBYARG_STATIC #{opt} #$LIBS")
279+
Config::expand(TRY_LINK.dup, conf)
280280
end
281281

282282
def cc_command(opt="")
283+
conf = Config::CONFIG.merge('hdrdir' => $hdrdir.quote, 'srcdir' => $srcdir.quote)
283284
Config::expand("$(CC) #$INCFLAGS #$CPPFLAGS #$CFLAGS #$ARCH_FLAG #{opt} -c #{CONFTEST_C}",
284-
CONFIG.merge('hdrdir' => $hdrdir.quote, 'srcdir' => $srcdir.quote))
285+
conf)
285286
end
286287

287288
def cpp_command(outfile, opt="")
289+
conf = Config::CONFIG.merge('hdrdir' => $hdrdir.quote, 'srcdir' => $srcdir.quote)
288290
Config::expand("$(CPP) #$INCFLAGS #$CPPFLAGS #$CFLAGS #{opt} #{CONFTEST_C} #{outfile}",
289-
CONFIG.merge('hdrdir' => $hdrdir.quote, 'srcdir' => $srcdir.quote))
291+
conf)
290292
end
291293

292294
def libpathflag(libpath=$DEFLIBPATH|$LIBPATH)

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define RUBY_RELEASE_DATE "2007-08-22"
33
#define RUBY_VERSION_CODE 186
44
#define RUBY_RELEASE_CODE 20070822
5-
#define RUBY_PATCHLEVEL 57
5+
#define RUBY_PATCHLEVEL 58
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8

0 commit comments

Comments
 (0)