From 5885550c8cb80fb8784598d3af1d90823f4f6604 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 2 Apr 2020 21:32:36 +0900 Subject: [ruby/etc] Hack to get rid of linking against static library --- ext/etc/extconf.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/etc/extconf.rb b/ext/etc/extconf.rb index b6ae7700da..5a0ce3c5f7 100644 --- a/ext/etc/extconf.rb +++ b/ext/etc/extconf.rb @@ -50,7 +50,13 @@ end 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 v1.2.3