diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-04-30 07:55:47 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-04-30 07:55:47 +0000 |
commit | b8669fe321c6f5e81d071d5790e51b9611fde860 (patch) | |
tree | d19d4f3da2790c53b046a861714f6fc21728d7e1 /lib/mkmf.rb | |
parent | b87b7e3fc1499a9f56d1a49aff22838c2166950c (diff) |
glibc 2.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r-- | lib/mkmf.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index f3654c3ca2..fd2a3c4dc5 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -71,9 +71,8 @@ def xsystem command print command, "\n" return system(command) end -p command -# $stderr.reopen($null) -# $stdout.reopen($null) + $stderr.reopen($null) + $stdout.reopen($null) r = system(command) $stderr.reopen($orgerr) $stdout.reopen($orgout) @@ -84,7 +83,11 @@ def try_link(src, opt="") cfile = open("conftest.c", "w") cfile.print src cfile.close - xsystem(format(LINK, $CFLAGS, $LDFLAGS, opt)) + begin + xsystem(format(LINK, $CFLAGS, $LDFLAGS, opt)) + ensure + system "rm -f conftest*" + end end def try_cpp(src, opt=$CFLAGS) |