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

ruby-changes:60622

From: Nobuyoshi <ko1@a...>
Date: Thu, 2 Apr 2020 21:33:56 +0900 (JST)
Subject: [ruby-changes:60622] 5885550c8c (master): [ruby/etc] Hack to get rid of linking against static library

https://git.ruby-lang.org/ruby.git/commit/?id=5885550c8c

From 5885550c8cb80fb8784598d3af1d90823f4f6604 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 2 Apr 2020 21:32:36 +0900
Subject: [ruby/etc] Hack to get rid of linking against static library


diff --git a/ext/etc/extconf.rb b/ext/etc/extconf.rb
index b6ae770..5a0ce3c 100644
--- a/ext/etc/extconf.rb
+++ b/ext/etc/extconf.rb
@@ -50,7 +50,13 @@ end https://github.com/ruby/ruby/blob/trunk/ext/etc/extconf.rb#L50
 decl = [
   "void rb_deprecate_constant(VALUE, const char *);",
 ]
-have_func('rb_deprecate_constant(Qnil, "None")', [decl])
+begin
+  # Hack to get rid of linking against static library
+  extmk, $extmk = $extmk, false
+  have_func('rb_deprecate_constant(Qnil, "None")', [decl])
+ensure
+  $extmk = extmk
+end
 
 $distcleanfiles << "constdefs.h"
 
-- 
cgit v0.10.2


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

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