Skip to content

Commit

Permalink
Fixed linux-musl build incompatibility with Ruby 3.0 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx authored Sep 29, 2022
1 parent 9023505 commit f0c1e52
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ext/stripttc/dummy.c
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// to keep linker happy
void Init_stripttc() {}
void Init_stripttc() {}
7 changes: 3 additions & 4 deletions ext/stripttc/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require "mkmf"
require "rbconfig"

CONFIG["LDSHARED"] << " -shared" unless RbConfig::CONFIG["host_os"].match?(/darwin/)

require "mkmf"
create_makefile "stripttc"
m = File.read("Makefile").gsub("--no-as-needed", "--as-needed")
File.write("Makefile", m)
2 changes: 1 addition & 1 deletion extract_ttc.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_runtime_dependency "bundler", "~> 2.3", ">= 2.3.22"
spec.add_runtime_dependency "ffi", "~> 1.0"
spec.add_runtime_dependency "bundler", '~> 2.3', '>= 2.3.22'
spec.add_runtime_dependency "rake", "~> 13"
spec.add_runtime_dependency "rake-compiler", "~> 1.2"
spec.add_runtime_dependency "rake-compiler-dock", "~> 1.2"
Expand Down
2 changes: 1 addition & 1 deletion lib/extract_ttc/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ExtractTtc
VERSION = "0.3.0".freeze
VERSION = "0.3.1".freeze
end

0 comments on commit f0c1e52

Please sign in to comment.