Skip to content

Commit

Permalink
Replaced Config with RbConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
wedesoft committed Oct 1, 2010
1 parent d1ca6c4 commit 038e0fd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Rakefile
Expand Up @@ -28,15 +28,15 @@ HOMEPAGE = %q{http://wedesoft.github.com/malloc/}
OBJ = CC_FILES.ext 'o'
$CXXFLAGS = ENV[ 'CXXFLAGS' ] || ''
$CXXFLAGS = "#{$CXXFLAGS} -fPIC"
if Config::CONFIG[ 'rubyhdrdir' ]
$CXXFLAGS += "#{$CXXFLAGS} -I#{Config::CONFIG[ 'rubyhdrdir' ]} " +
"-I#{Config::CONFIG[ 'rubyhdrdir' ]}/#{Config::CONFIG[ 'arch' ]}"
if RbConfig::CONFIG[ 'rubyhdrdir' ]
$CXXFLAGS += "#{$CXXFLAGS} -I#{RbConfig::CONFIG[ 'rubyhdrdir' ]} " +
"-I#{RbConfig::CONFIG[ 'rubyhdrdir' ]}/#{RbConfig::CONFIG[ 'arch' ]}"
else
$CXXFLAGS += "#{$CXXFLAGS} -I#{Config::CONFIG[ 'archdir' ]}"
$CXXFLAGS += "#{$CXXFLAGS} -I#{RbConfig::CONFIG[ 'archdir' ]}"
end
$LIBRUBYARG = Config::CONFIG[ 'LIBRUBYARG' ]
$SITELIBDIR = Config::CONFIG[ 'sitelibdir' ]
$SITEARCHDIR = Config::CONFIG[ 'sitearchdir' ]
$LIBRUBYARG = RbConfig::CONFIG[ 'LIBRUBYARG' ]
$SITELIBDIR = RbConfig::CONFIG[ 'sitelibdir' ]
$SITEARCHDIR = RbConfig::CONFIG[ 'sitearchdir' ]

task :default => :all

Expand Down

0 comments on commit 038e0fd

Please sign in to comment.