Skip to content

Commit

Permalink
Locate SO_TARGET_DIR with gem rather than system
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhamon committed Feb 2, 2023
1 parent fc29679 commit 6380fe6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/seven_zip_ruby/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
require("rbconfig")


SO_TARGET_DIR = File.expand_path(File.join(RbConfig::CONFIG["sitearchdir"], "seven_zip_ruby"))
SO_TARGET_DIR = File.join(File.expand_path("../../../lib", __FILE__), "seven_zip_ruby")

if !File.exist?(SO_TARGET_DIR)
raise "doesn't exist"
end

def create_p7zip_makefile(type)
config = RbConfig::CONFIG
Expand Down

0 comments on commit 6380fe6

Please sign in to comment.