summaryrefslogtreecommitdiff
path: root/ext/bigdecimal/extconf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-04 11:16:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-04 11:16:15 +0000
commit49efa01579272d52d28bd361c498d96ca92e986e (patch)
treea969043d5e1ccd2eb7beb1e532ade327214187b4 /ext/bigdecimal/extconf.rb
parentbfb64d476578eadd61a738149726da37840f068d (diff)
Remove unnecessary linker flags
Cygwin/mingw linker should be able to link against shared library itself. Mswin build sets -def:$(DEFFILE) option by the default. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal/extconf.rb')
-rw-r--r--ext/bigdecimal/extconf.rb30
1 files changed, 0 insertions, 30 deletions
diff --git a/ext/bigdecimal/extconf.rb b/ext/bigdecimal/extconf.rb
index a78e740aed9..2ae5e1b720e 100644
--- a/ext/bigdecimal/extconf.rb
+++ b/ext/bigdecimal/extconf.rb
@@ -1,10 +1,6 @@
# frozen_string_literal: false
require 'mkmf'
-def windows_platform?
- /cygwin|mingw|mswin/ === RUBY_PLATFORM
-end
-
gemspec_name = gemspec_path = nil
unless ['', '../../'].any? {|dir|
gemspec_name = "#{dir}bigdecimal.gemspec"
@@ -32,32 +28,6 @@ have_func("rb_rational_den", "ruby.h")
have_func("rb_array_const_ptr", "ruby.h")
have_func("rb_sym2str", "ruby.h")
-if windows_platform?
- library_base_name = "ruby-bigdecimal"
- case RUBY_PLATFORM
- when /cygwin|mingw/
- import_library_name = "libruby-bigdecimal.a"
- when /mswin/
- import_library_name = "bigdecimal-$(arch).lib"
- end
-end
-
-checking_for(checking_message("Windows")) do
- if windows_platform?
- case RUBY_PLATFORM
- when /cygwin|mingw/
- $DLDFLAGS << " $(srcdir)/bigdecimal.def"
- $DLDFLAGS << " -Wl,--out-implib=$(TARGET_SO_DIR)#{import_library_name}"
- when /mswin/
- $DLDFLAGS << " /DEF:$(srcdir)/bigdecimal.def"
- end
- $cleanfiles << import_library_name
- true
- else
- false
- end
-end
-
create_makefile('bigdecimal') {|mf|
mf << "GEMSPEC = #{gemspec_name}\n"
}