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

ruby-changes:39042

From: usa <ko1@a...>
Date: Fri, 3 Jul 2015 18:48:21 +0900 (JST)
Subject: [ruby-changes:39042] usa:r51123 (ruby_2_1): merge revision(s) 50717: [Backport #11201]

usa	2015-07-03 18:43:59 +0900 (Fri, 03 Jul 2015)

  New Revision: 51123

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

  Log:
    merge revision(s) 50717: [Backport #11201]
    
    * lib/mkmf.rb (pkg_config): split --libs if --libs-only-l option
      is not available.  patch in [ruby-core:69428] by Hans Mackowiak.
      [ruby-core:69421] [Bug #11201]

  Modified directories:
    branches/ruby_2_1/
  Modified files:
    branches/ruby_2_1/ChangeLog
    branches/ruby_2_1/lib/mkmf.rb
    branches/ruby_2_1/version.h
Index: ruby_2_1/ChangeLog
===================================================================
--- ruby_2_1/ChangeLog	(revision 51122)
+++ ruby_2_1/ChangeLog	(revision 51123)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ChangeLog#L1
+Fri Jul  3 18:40:48 2015  Nobuyoshi Nakada  <nobu@r...>
+
+	* lib/mkmf.rb (pkg_config): split --libs if --libs-only-l option
+	  is not available.  patch in [ruby-core:69428] by Hans Mackowiak.
+	  [ruby-core:69421] [Bug #11201]
+
 Fri Jul  3 18:32:37 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* compile.c (iseq_compile_each): out of range NTH_REF is always
Index: ruby_2_1/lib/mkmf.rb
===================================================================
--- ruby_2_1/lib/mkmf.rb	(revision 51122)
+++ ruby_2_1/lib/mkmf.rb	(revision 51123)
@@ -1756,11 +1756,18 @@ SRC https://github.com/ruby/ruby/blob/trunk/ruby_2_1/lib/mkmf.rb#L1756
     elsif get and try_ldflags(ldflags = get['libs'])
       cflags = get['cflags']
       libs = get['libs-only-l']
-      ldflags = (Shellwords.shellwords(ldflags) - Shellwords.shellwords(libs)).quote.join(" ")
-      $CFLAGS += " " << cflags
-      $CXXFLAGS += " " << cflags
-      $LDFLAGS = [orig_ldflags, ldflags].join(' ')
+      if cflags
+        $CFLAGS += " " << cflags
+        $CXXFLAGS += " " << cflags
+      end
+      if libs
+        ldflags = (Shellwords.shellwords(ldflags) - Shellwords.shellwords(libs)).quote.join(" ")
+      else
+        libs, ldflags = Shellwords.shellwords(ldflags).partition {|s| s =~ /-l([^ ]+)/ }.map {|l|l.quote.join(" ")}
+      end
       $libs += " " << libs
+
+      $LDFLAGS = [orig_ldflags, ldflags].join(' ')
       Logging::message "package configuration for %s\n", pkg
       Logging::message "cflags: %s\nldflags: %s\nlibs: %s\n\n",
                        cflags, ldflags, libs
Index: ruby_2_1/version.h
===================================================================
--- ruby_2_1/version.h	(revision 51122)
+++ ruby_2_1/version.h	(revision 51123)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/version.h#L1
 #define RUBY_VERSION "2.1.7"
 #define RUBY_RELEASE_DATE "2015-07-03"
-#define RUBY_PATCHLEVEL 373
+#define RUBY_PATCHLEVEL 374
 
 #define RUBY_RELEASE_YEAR 2015
 #define RUBY_RELEASE_MONTH 7

Property changes on: ruby_2_1
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r50717


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

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