Skip to content

Commit 2ed8d55

Browse files
author
Tony Goncalves
committed
Avoid linking to libxml-ruby at compile time
1 parent 933c94b commit 2ed8d55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/libxslt/extconf.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ def crash(str)
126126

127127
RUBY_VERSION =~ /(\d+.\d+)/
128128
minor_version = $1
129-
paths = ["#{gem_spec.full_gem_path}/lib",
129+
paths = ["#{gem_spec.full_gem_path}/lib",
130130
"#{gem_spec.full_gem_path}/lib/#{minor_version}",
131131
"#{gem_spec.full_gem_path}/ext/libxml"]
132132

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

0 commit comments

Comments
 (0)