Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Config -> RbConfig. Closes #23

  • Loading branch information...
commit d62ad1ae5d8c7e9e706cc05aee7d1d938fefd12a 1 parent c8170a3
@copiousfreetime authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 ext/amalgalite/extconf.rb
  2. +1 −1  tasks/extension.rake
View
4 ext/amalgalite/extconf.rb
@@ -22,12 +22,12 @@
# remove the -g flags if it exists
%w[ -ggdb\\d* -g\\d* ].each do |debug|
$CFLAGS = $CFLAGS.gsub(/#{debug}/,'')
- RbConfig::MAKEFILE_CONFIG['debugflags'] = Config::MAKEFILE_CONFIG['debugflags'].gsub(/#{debug}/,'') if Config::MAKEFILE_CONFIG['debugflags']
+ RbConfig::MAKEFILE_CONFIG['debugflags'] = RbConfig::MAKEFILE_CONFIG['debugflags'].gsub(/#{debug}/,'') if RbConfig::MAKEFILE_CONFIG['debugflags']
end
%w[ shorten-64-to-32 write-strings ].each do |warning|
$CFLAGS = $CFLAGS.gsub(/-W#{warning}/,'')
- Config::MAKEFILE_CONFIG['warnflags'] = Config::MAKEFILE_CONFIG['warnflags'].gsub(/-W#{warning}/,'') if Config::MAKEFILE_CONFIG['warnflags']
+ RbConfig::MAKEFILE_CONFIG['warnflags'] = RbConfig::MAKEFILE_CONFIG['warnflags'].gsub(/-W#{warning}/,'') if RbConfig::MAKEFILE_CONFIG['warnflags']
end
View
2  tasks/extension.rake
@@ -29,7 +29,7 @@ namespace :ext do
# install into requireable location so specs will run
mkdir_p ext_dest_dir, :verbose => true
- cp "amalgalite3.#{Config::CONFIG['DLEXT']}", ext_dest_dir, :verbose => true
+ cp "amalgalite3.#{RbConfig::CONFIG['DLEXT']}", ext_dest_dir, :verbose => true
end
end
end

0 comments on commit d62ad1a

Please sign in to comment.
Something went wrong with that request. Please try again.