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

ruby-changes:40643

From: ngoto <ko1@a...>
Date: Mon, 23 Nov 2015 20:00:13 +0900 (JST)
Subject: [ruby-changes:40643] ngoto:r52722 (trunk): * configure.in: On Solaris, with gcc, "-std=iso9899:1999"

ngoto	2015-11-23 19:59:57 +0900 (Mon, 23 Nov 2015)

  New Revision: 52722

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

  Log:
    * configure.in: On Solaris, with gcc, "-std=iso9899:1999"
      in $ansi_options is often also needed in CPPFLAGS,
      because some feature definitions vary depending on such
      standards options.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 52721)
+++ configure.in	(revision 52722)
@@ -1098,6 +1098,13 @@ main() https://github.com/ruby/ruby/blob/trunk/configure.in#L1098
 		    [given_xopen_source=yes], [given_xopen_source=no])
 		AC_MSG_RESULT($given_xopen_source)
 		if test $given_xopen_source = no; then
+		  # On Solaris, with gcc, -std=iso9899:1999 in $ansi_options
+		  # is often also needed in CPPFLAGS, because some feature
+		  # definitions vary depending on such standards options.
+		  AS_CASE(["${ansi_options}"],
+		  [*-std=iso9899:1999*], [
+		    RUBY_APPEND_OPTIONS(CPPFLAGS, ${ansi_options})
+		  ])
 		  AC_MSG_CHECKING(appropriate _XOPEN_SOURCE value to define)
 		  define_xopen_source=""
 		  for tmp_xpg in 7 6 5; do
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52721)
+++ ChangeLog	(revision 52722)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Nov 23 19:53:12 2015  Naohisa Goto  <ngotogenome@g...>
+
+	* configure.in: On Solaris, with gcc, "-std=iso9899:1999"
+	  in $ansi_options is often also needed in CPPFLAGS,
+	  because some feature definitions vary depending on such
+	  standards options.
+
 Mon Nov 23 12:54:39 2015  Hamish Morrison  <hamishm53@g...>
 
 	* configure.in: remove obsolete workarounds for Haiku.

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

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