From 8695612caf8afe1138a7baaa142658dd93c70293 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 16 Aug 2003 14:58:34 +0000 Subject: * marshal.c (w_symbol, w_object): get rid of warnings. * re.c (rb_memsearch): ditto. * time.c (time_dump): ditto. * ext/extmk.rb (extmake): not continue making when extconf.rb failed. * ext/openssl/extconf.rb: check __VA_ARGS__ macro more precisely. * ext/openssl/ossl.h: remove version.h dependency. * ext/openssl/ruby_missing.h: ditto. * lib/mkmf.rb (pkg_config): use --libs output except with only-L for other options. [ruby-list:38099] * lib/mkmf.rb (create_makefile): separate rule for static library from shared object. * win32/Makefile.sub, bcc32/Makefile.sub, wince/Makefile.sub: define exec_prefix and libdir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/extmk.rb | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'ext/extmk.rb') diff --git a/ext/extmk.rb b/ext/extmk.rb index e2f398356d..bb50579c92 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -61,15 +61,17 @@ def extmake(target) $mdir = target $srcdir = File.join($top_srcdir, "ext", $mdir) $preload = nil + makefile = "./Makefile" unless $ignore if $static || - !(t = modified?("./Makefile", MTIMES)) || + !(t = modified?(makefile, MTIMES)) || %W<#{$srcdir}/makefile.rb #{$srcdir}/extconf.rb #{$srcdir}/depend #{$srcdir}/MANIFEST>.any? {|f| modified?(f, [t])} then $defs = [] Logging::logfile 'mkmf.log' Config::CONFIG["srcdir"] = $srcdir + rm_f makefile begin if File.exist?($0 = "#{$srcdir}/makefile.rb") load $0 @@ -78,6 +80,7 @@ def extmake(target) else create_makefile(target) end + File.exist?(makefile) rescue SystemExit # ignore ensure @@ -85,19 +88,20 @@ def extmake(target) $0 = $PROGRAM_NAME Config::CONFIG["srcdir"] = $top_srcdir end + else + true end + end or open(makefile, "w") do |f| + f.print dummy_makefile($srcdir) + return true end - if File.exist?("./Makefile") - if $static - $extlist.push [$static, $target, File.basename($target), $preload] - end - unless system($make, *sysquote($mflags)) - $ignore or $continue or return false - end - else - open("./Makefile", "w") {|f| - f.print dummy_makefile($srcdir) - } + args = sysquote($mflags) + if $static + args += ["static"] + $extlist.push [$static, $target, File.basename($target), $preload] + end + unless system($make, *args) + $ignore or $continue or return false end if $static $extflags ||= "" -- cgit v1.2.3