Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Fix newer GCC compile errors #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cld2.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
gem.require_paths = ["lib"]
gem.version = CLD::VERSION

gem.add_dependency "ffi", "~> 1.9.3"
gem.add_dependency "ffi", ">= 1.9.3", "< 2"

gem.add_development_dependency "rspec", "~> 2.14.1"
end
3 changes: 3 additions & 0 deletions ext/cld/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"internal/cld_generated_score_quad_octa_0122_2.o",
"thunk.o"]

# Prevents issues compiling with newer GCC versions
$defs.push("-std=c++98")

if have_library('stdc++')
create_makefile('libcld2')
end
Expand Down