[前][次][番号順一覧][スレッド一覧]

ruby-changes:45654

From: nobu <ko1@a...>
Date: Mon, 27 Feb 2017 16:38:01 +0900 (JST)
Subject: [ruby-changes:45654] nobu:r57727 (trunk): mkmf.rb: get rid of error messages

nobu	2017-02-27 16:37:55 +0900 (Mon, 27 Feb 2017)

  New Revision: 57727

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57727

  Log:
    mkmf.rb: get rid of error messages
    
    * lib/mkmf.rb (create_makefile): add TARGET_SO to CLEANLIBS only
      when the extension library will be build, to get rid of trying
      to remove $(TARGET_SO_DIR).

  Modified files:
    trunk/lib/mkmf.rb
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 57726)
+++ lib/mkmf.rb	(revision 57727)
@@ -2300,7 +2300,7 @@ TIMESTAMP_DIR = #{$extout && $extmk ? '$ https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L2300
     conf << "\
 TARGET_SO_DIR =#{$extout ? " $(RUBYARCHDIR)/" : ''}
 TARGET_SO     = $(TARGET_SO_DIR)$(DLLIB)
-CLEANLIBS     = $(TARGET_SO) #{config_string('cleanlibs') {|t| t.gsub(/\$\*/) {n}}}
+CLEANLIBS     = #{'$(TARGET_SO) ' if target}#{config_string('cleanlibs') {|t| t.gsub(/\$\*/) {n}}}
 CLEANOBJS     = *.#{$OBJEXT} #{config_string('cleanobjs') {|t| t.gsub(/\$\*/, "$(TARGET)#{deffile ? '-$(arch)': ''}")} if target} *.bak
 " #"
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]