summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-02 21:59:33 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-02 21:59:33 +0900
commit11ddfd4c91c32d1011805feeadb214c194a12646 (patch)
treed7e7af51053560519ad8a56ad9e7ea2126edcbe4
parent736695cefb8147f7e5d1b5a23c7a36c3b6e73f6d (diff)
Revert "[ruby/etc] Hack to get rid of linking against static library"
This reverts commit 5885550c8cb80fb8784598d3af1d90823f4f6604. It didn't work without `--enable-shared`.
-rw-r--r--ext/etc/extconf.rb8
1 files changed, 1 insertions, 7 deletions
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"