ruby-changes:60625
From: Nobuyoshi <ko1@a...>
Date: Thu, 2 Apr 2020 22:00:45 +0900 (JST)
Subject: [ruby-changes:60625] 11ddfd4c91 (master): Revert "[ruby/etc] Hack to get rid of linking against static library"
https://git.ruby-lang.org/ruby.git/commit/?id=11ddfd4c91 From 11ddfd4c91c32d1011805feeadb214c194a12646 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 2 Apr 2020 21:59:33 +0900 Subject: Revert "[ruby/etc] Hack to get rid of linking against static library" This reverts commit 5885550c8cb80fb8784598d3af1d90823f4f6604. It didn't work without `--enable-shared`. diff --git a/ext/etc/extconf.rb b/ext/etc/extconf.rb index 5a0ce3c..b6ae770 100644 --- a/ext/etc/extconf.rb +++ b/ext/etc/extconf.rb @@ -50,13 +50,7 @@ end https://github.com/ruby/ruby/blob/trunk/ext/etc/extconf.rb#L50 decl = [ "void rb_deprecate_constant(VALUE, const char *);", ] -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 +have_func('rb_deprecate_constant(Qnil, "None")', [decl]) $distcleanfiles << "constdefs.h" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/