diff options
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r-- | lib/mkmf.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index fb37cae9ea..f3654c3ca2 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -71,8 +71,9 @@ def xsystem command print command, "\n" return system(command) end - $stderr.reopen($null) - $stdout.reopen($null) +p command +# $stderr.reopen($null) +# $stdout.reopen($null) r = system(command) $stderr.reopen($orgerr) $stdout.reopen($orgout) @@ -83,7 +84,7 @@ def try_link(src, opt="") cfile = open("conftest.c", "w") cfile.print src cfile.close - xsystem(format(LINK, $CFLAGS, $LDFLAGS, libs)) + xsystem(format(LINK, $CFLAGS, $LDFLAGS, opt)) end def try_cpp(src, opt=$CFLAGS) |