mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* time.c (time_free): prototype; struct time_object -> void *.
avoid GCC warnings. * lib/mkmf.rb, ext/extmk.rb ($LINK, $CPP): move to lib/mkmf.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
58d69379c1
commit
73d4f4b0bb
4 changed files with 17 additions and 12 deletions
10
ext/extmk.rb
10
ext/extmk.rb
|
|
@ -32,19 +32,17 @@ $extlist = []
|
|||
$:.replace ["."]
|
||||
require 'rbconfig'
|
||||
|
||||
$top_srcdir = Config::CONFIG["srcdir"]
|
||||
srcdir = Config::CONFIG["srcdir"]
|
||||
|
||||
$:.replace [$top_srcdir, $top_srcdir+"/lib", "."]
|
||||
$:.replace [srcdir, srcdir+"/lib", "."]
|
||||
|
||||
require 'mkmf'
|
||||
require 'find'
|
||||
require 'ftools'
|
||||
require 'shellwords'
|
||||
|
||||
$topdir = File.expand_path(".")
|
||||
|
||||
$LINK = "#{CONFIG['CC']} #{OUTFLAG}conftest -I#$topdir -I#$top_srcdir #{CFLAGS} %s %s #{CONFIG['LDFLAGS']} %s conftest.c %s %s #{CONFIG['LIBS']}"
|
||||
$CPP = "#{CONFIG['CPP']} #{CONFIG['CPPFLAGS']} %s -I#$topdir -I#$top_srcdir #{CFLAGS} %s %s %s conftest.c"
|
||||
$topdir = $hdrdir = File.expand_path(".")
|
||||
$top_srcdir = srcdir
|
||||
|
||||
Object.class_eval do remove_method :create_makefile end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue