Skip to content

Commit ba15f86

Browse files
committed
skip linking libxml-ruby if rubyengine is rubinius
1 parent 9928061 commit ba15f86

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/libxslt/extconf.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,12 @@ def crash(str)
130130
"#{gem_spec.full_gem_path}/lib/#{minor_version}",
131131
"#{gem_spec.full_gem_path}/ext/libxml"]
132132

133+
is_osx = RbConfig::CONFIG['host_os'].match(/darwin/)
134+
is_rbx = defined?(RUBY_ENGINE) && (RUBY_ENGINE == "rbx")
135+
133136
# No need to link xml_ruby on OS X
134-
unless RbConfig::CONFIG['host_os'].match(/darwin/)
137+
# Also do not link on rubinius
138+
unless (is_osx or is_rbx)
135139
# Hack to make sure ruby library is *after* xml_ruby library
136140
$LIBS = "#{$LIBRUBYARG_STATIC} #{$LIBS}"
137141

0 commit comments

Comments
 (0)