Skip to content

Commit

Permalink
Avoid linking to libxml-ruby at compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Goncalves committed Jan 4, 2018
1 parent 933c94b commit 2ed8d55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/libxslt/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ def crash(str)

RUBY_VERSION =~ /(\d+.\d+)/
minor_version = $1
paths = ["#{gem_spec.full_gem_path}/lib",
paths = ["#{gem_spec.full_gem_path}/lib",
"#{gem_spec.full_gem_path}/lib/#{minor_version}",
"#{gem_spec.full_gem_path}/ext/libxml"]

# No need to link xml_ruby on OS X
unless RbConfig::CONFIG['host_os'].match(/darwin/)
unless RbConfig::CONFIG['host_os'].match(/darwin|linux/)
# Hack to make sure ruby library is *after* xml_ruby library
$LIBS = "#{$LIBRUBYARG_STATIC} #{$LIBS}"

Expand Down

0 comments on commit 2ed8d55

Please sign in to comment.