Skip to content

Commit

Permalink
Fixed installation on Fedora
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed May 9, 2023
1 parent 88cc7f1 commit f0397ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 0.1.1 (unreleased)

- Fixed error on Fedora
- Fixed installation on Fedora

## 0.1.0 (2023-03-20)

Expand Down
4 changes: 3 additions & 1 deletion ext/mittens/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
require "open3"

vendor = File.expand_path("../../vendor/snowball", __dir__)
output, status = Open3.capture2("make", chdir: vendor)
# CFLAGS from vendor/snowball/GNUmakefile and -fPIC
cflags = "-O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations -fPIC"
output, status = Open3.capture2("make", "CFLAGS=#{cflags}", chdir: vendor)
puts output
raise "Command failed" unless status.success?

Expand Down

0 comments on commit f0397ef

Please sign in to comment.