ext/Rakefile in ruby-vpi-14.0.0 vs ext/Rakefile in ruby-vpi-15.0.0
- old
+ new
@@ -29,20 +29,16 @@
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'ruby-vpi/rake'
-CFLAGS = [Config::CONFIG['CFLAGS'], ENV['CFLAGS'], '-g', '-DDEBUG']
-LDFLAGS = [Config::CONFIG['LDFLAGS'], ENV['LDFLAGS']]
-
-
desc "Builds the extension."
task :default => 'Makefile' do |t|
sh 'make', '-f', t.prerequisites[0]
end
file 'Makefile' => [:swig, 'extconf.rb'] do |t|
- ruby t.prerequisites[1], "--with-cflags=#{CFLAGS.join(' ')}", "--with-ldflags=#{LDFLAGS.join(' ')}"
+ ruby t.prerequisites[1], "--with-cflags=#{ENV['CFLAGS']}", "--with-ldflags=#{ENV['LDFLAGS']}"
end
CLEAN.include 'Makefile', 'mkmf.log', '*.o', '*.so'