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

ruby-changes:71619

From: Nobuyoshi <ko1@a...>
Date: Mon, 4 Apr 2022 16:06:32 +0900 (JST)
Subject: [ruby-changes:71619] 57377e5d53 (master): [ruby/psych] Propagate `CC` to libyaml

https://git.ruby-lang.org/ruby.git/commit/?id=57377e5d53

From 57377e5d537c78bab4201a730cf3ab04a3085f6a Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 1 Apr 2022 12:38:47 +0900
Subject: [ruby/psych] Propagate `CC` to libyaml

It is needed for cross-compiling to set properly.  Just
`--target`/`--host`/`--build` seems insufficient on some
platforms.

https://github.com/ruby/psych/commit/2d00c0c203
---
 ext/psych/extconf.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb
index ff8f61a450..795a0506ff 100644
--- a/ext/psych/extconf.rb
+++ b/ext/psych/extconf.rb
@@ -45,6 +45,7 @@ if yaml_source https://github.com/ruby/ruby/blob/trunk/ext/psych/extconf.rb#L45
     yaml_configure,
     "--enable-#{shared ? 'shared' : 'static'}",
     "--host=#{RbConfig::CONFIG['host'].sub(/-unknown-/, '-')}",
+    "CC=#{RbConfig::CONFIG['CC']}",
     *(["CFLAGS=-w"] if RbConfig::CONFIG["GCC"] == "yes"),
   ]
   puts(args.quote.join(' '))
-- 
cgit v1.2.1


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

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