summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-08 12:59:08 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-08 12:59:08 +0000
commit73d4f4b0bbe7918134fc2d687298af0181a5030d (patch)
tree3c5975217964388c44d7df879a8c5d8a4cff661d /ext/extmk.rb
parent58d69379c19db540c4a9692c0d6dba75668e7629 (diff)
* 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
Diffstat (limited to 'ext/extmk.rb')
-rw-r--r--ext/extmk.rb10
1 files changed, 4 insertions, 6 deletions
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