From 73d4f4b0bbe7918134fc2d687298af0181a5030d Mon Sep 17 00:00:00 2001 From: eban Date: Sun, 8 Sep 2002 12:59:08 +0000 Subject: * 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 --- ext/extmk.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'ext/extmk.rb') diff --git a/ext/extmk.rb b/ext/extmk.rb index 77757dc830..ca46e25beb 100644 --- a/ext/extmk.rb +++ b/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 -- cgit v1.2.3