summaryrefslogtreecommitdiff
path: root/test/mkmf
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-04 07:03:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-04 07:03:01 +0000
commit246c66f70242065407fb25161b4d31fc39c1cd32 (patch)
tree049d4d9181033c6267f7c7ac111198a301f5a6c3 /test/mkmf
parent05bc47773ab5be6ce461c8180e2d4b7cb727f76f (diff)
mkmf.rb: CONFTEST
* lib/mkmf.rb (CONFTEST): constify hardcoded filename. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/mkmf')
-rw-r--r--test/mkmf/test_have_library.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mkmf/test_have_library.rb b/test/mkmf/test_have_library.rb
index 3cdc6e2..50202f4 100644
--- a/test/mkmf/test_have_library.rb
+++ b/test/mkmf/test_have_library.rb
@@ -16,8 +16,8 @@ class TestMkmf
end
create_tmpsrc("#include \"#{HEADER_NAME}\"\n""void #{FUNC_NAME}(void) {}")
xsystem(cc_command)
- xsystem("#{CONFIG['AR']} #{config_string('ARFLAGS') || 'cru '}#{lib} conftest.#{$OBJEXT}")
- File.unlink("conftest.#{$OBJEXT}")
+ xsystem("#{CONFIG['AR']} #{config_string('ARFLAGS') || 'cru '}#{lib} #{CONFTEST}.#{$OBJEXT}")
+ File.unlink("#{CONFTEST}.#{$OBJEXT}")
config_string('RANLIB') do |ranlib|
xsystem("#{ranlib} #{lib}")
end