From 11ddfd4c91c32d1011805feeadb214c194a12646 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada 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`. --- ext/etc/extconf.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'ext/etc') diff --git a/ext/etc/extconf.rb b/ext/etc/extconf.rb index 5a0ce3c5f7..b6ae7700da 100644 --- a/ext/etc/extconf.rb +++ b/ext/etc/extconf.rb @@ -50,13 +50,7 @@ end 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 v1.2.3