diff options
| author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-08 12:59:08 +0000 |
|---|---|---|
| committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-08 12:59:08 +0000 |
| commit | 6206cba15ecc273e8a2b739e0ff2d20deff05219 (patch) | |
| tree | 3c5975217964388c44d7df879a8c5d8a4cff661d /ext | |
| parent | 75cb69f8f6c13d5b16afae3d651d300dcc6bf387 (diff) | |
| download | ruby-6206cba15ecc273e8a2b739e0ff2d20deff05219.tar.gz ruby-6206cba15ecc273e8a2b739e0ff2d20deff05219.tar.xz ruby-6206cba15ecc273e8a2b739e0ff2d20deff05219.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@2826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/extmk.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index 77757dc83..ca46e25be 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 |
