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

ruby-changes:64419

From: Naohisa <ko1@a...>
Date: Mon, 21 Dec 2020 23:45:05 +0900 (JST)
Subject: [ruby-changes:64419] 84eebb3c9e (master): On Solaris, _XOPEN_SOURCE should be undefined for C++ sources.

https://git.ruby-lang.org/ruby.git/commit/?id=84eebb3c9e

From 84eebb3c9e92d33055393d32a276e11f3e1afd3f Mon Sep 17 00:00:00 2001
From: Naohisa Goto <ngotogenome@g...>
Date: Mon, 21 Dec 2020 23:08:35 +0900
Subject: On Solaris, _XOPEN_SOURCE should be undefined for C++ sources.


diff --git a/configure.ac b/configure.ac
index dbd0832..c3157ff 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1034,6 +1034,8 @@ main() https://github.com/ruby/ruby/blob/trunk/configure.ac#L1034
 		  AC_MSG_RESULT($define_xopen_source)
 		  AS_IF([test x"$define_xopen_source" != xno], [
 		    RUBY_APPEND_OPTIONS(CPPFLAGS, -D_XOPEN_SOURCE=$define_xopen_source)
+		    # _XOPEN_SOURCE should not be defined for C++ on Solaris.
+		    RUBY_APPEND_OPTIONS(CXXFLAGS, -U_XOPEN_SOURCE)
 		  ])
 		])
 		],
-- 
cgit v0.10.2


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

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