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

ruby-changes:35375

From: nobu <ko1@a...>
Date: Tue, 9 Sep 2014 09:02:16 +0900 (JST)
Subject: [ruby-changes:35375] nobu:r47457 (trunk): mkmf.rb: --cflags to $CXXFLAGS

nobu	2014-09-09 09:02:08 +0900 (Tue, 09 Sep 2014)

  New Revision: 47457

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

  Log:
    mkmf.rb: --cflags to $CXXFLAGS
    
    * lib/mkmf.rb (MakeMakefile#pkg_config): append --cflags to also
      $CXXFLAGS, as they are often used by C++ compiler.
      [ruby-core:54532] [Bug #8315]

  Modified files:
    trunk/ChangeLog
    trunk/lib/mkmf.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47456)
+++ ChangeLog	(revision 47457)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Sep  9 09:02:07 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* lib/mkmf.rb (MakeMakefile#pkg_config): append --cflags to also
+	  $CXXFLAGS, as they are often used by C++ compiler.
+	  [ruby-core:54532] [Bug #8315]
+
 Tue Sep  9 07:03:22 2014  Eric Wong  <e@8...>
 
 	* compile.c: remove needless SYM2ID <-> ID2SYM conversions
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 47456)
+++ lib/mkmf.rb	(revision 47457)
@@ -1778,6 +1778,7 @@ SRC https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1778
       libs = get['libs-only-l']
       ldflags = (Shellwords.shellwords(ldflags) - Shellwords.shellwords(libs)).quote.join(" ")
       $CFLAGS += " " << cflags
+      $CXXFLAGS += " " << cflags
       $LDFLAGS = [orig_ldflags, ldflags].join(' ')
       $libs += " " << libs
       Logging::message "package configuration for %s\n", pkg

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

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